[vlc-commits] qsv: set the input texture sizes when they are known

Steve Lhomme git at videolan.org
Wed Apr 4 18:28:34 CEST 2018


vlc | branch: master | Steve Lhomme <robux4 at videolabs.io> | Thu Nov 23 15:02:04 2017 +0100| [6039a555ef2d33e95a7511955a35c9c52c8ef871] | committer: Steve Lhomme

qsv: set the input texture sizes when they are known

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=6039a555ef2d33e95a7511955a35c9c52c8ef871
---

 modules/codec/qsv.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/modules/codec/qsv.c b/modules/codec/qsv.c
index a1e5fc08c6..7417590112 100644
--- a/modules/codec/qsv.c
+++ b/modules/codec/qsv.c
@@ -616,6 +616,8 @@ static int Open(vlc_object_t *this)
     enc->fmt_in.i_codec                = VLC_CODEC_NV12; // Intel Media SDK requirement
     enc->fmt_in.video.i_chroma         = VLC_CODEC_NV12;
     enc->fmt_in.video.i_bits_per_pixel = 12;
+    enc->fmt_in.video.i_width          = sys->params.mfx.FrameInfo.Width;
+    enc->fmt_in.video.i_height         = sys->params.mfx.FrameInfo.Height;
 
     enc->pf_encode_video = Encode;
 



More information about the vlc-commits mailing list