[vlc-devel] [PATCH] directx_va: make sure the internal converters we use don't allow a different format on output
Steve Lhomme
robux4 at videolabs.io
Fri May 5 10:16:20 CEST 2017
---
modules/codec/avcodec/d3d11va.c | 1 +
modules/codec/avcodec/dxva2.c | 1 +
2 files changed, 2 insertions(+)
diff --git a/modules/codec/avcodec/d3d11va.c b/modules/codec/avcodec/d3d11va.c
index 85e7d25cae..5cfce42e69 100644
--- a/modules/codec/avcodec/d3d11va.c
+++ b/modules/codec/avcodec/d3d11va.c
@@ -218,6 +218,7 @@ static filter_t *CreateFilter( vlc_object_t *p_this, const es_format_t *p_fmt_in
break;
}
+ p_filter->b_allow_fmt_out_change = false;
p_filter->owner.video.buffer_new = (picture_t *(*)(filter_t *))video_new_buffer;
es_format_InitFromVideo( &p_filter->fmt_in, &p_fmt_in->video );
diff --git a/modules/codec/avcodec/dxva2.c b/modules/codec/avcodec/dxva2.c
index 668adbc919..f19a7c392d 100644
--- a/modules/codec/avcodec/dxva2.c
+++ b/modules/codec/avcodec/dxva2.c
@@ -199,6 +199,7 @@ static filter_t *CreateFilter( vlc_object_t *p_this, const es_format_t *p_fmt_in
break;
}
+ p_filter->b_allow_fmt_out_change = false;
es_format_InitFromVideo( &p_filter->fmt_in, &p_fmt_in->video );
es_format_InitFromVideo( &p_filter->fmt_out, &p_fmt_in->video );
p_filter->fmt_in.i_codec = p_filter->fmt_in.video.i_chroma = src_chroma;
--
2.12.1
More information about the vlc-devel
mailing list