[FFmpeg-cvslog] qsv: Default PicStruct to progressive

Ruiling Song git at videolan.org
Tue Mar 6 00:32:29 EET 2018


ffmpeg | branch: master | Ruiling Song <ruiling.song at intel.com> | Mon Feb 12 16:37:16 2018 +0800| [8ca39b855a7b0e4d9f726fa9d285bc8edcb953e6] | committer: Luca Barbato

qsv: Default PicStruct to progressive

The PicStruct is required by MediaSDK, so give a default value.
hwupload does not work without this.

Signed-off-by: Ruiling Song <ruiling.song at intel.com>
Signed-off-by: Luca Barbato <lu_zero at gentoo.org>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=8ca39b855a7b0e4d9f726fa9d285bc8edcb953e6
---

 libavutil/hwcontext_qsv.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/libavutil/hwcontext_qsv.c b/libavutil/hwcontext_qsv.c
index 9fa603c350..73b5f2467c 100644
--- a/libavutil/hwcontext_qsv.c
+++ b/libavutil/hwcontext_qsv.c
@@ -313,6 +313,7 @@ static int qsv_init_surface(AVHWFramesContext *ctx, mfxFrameSurface1 *surf)
     surf->Info.CropH          = ctx->height;
     surf->Info.FrameRateExtN  = 25;
     surf->Info.FrameRateExtD  = 1;
+    surf->Info.PicStruct      = MFX_PICSTRUCT_PROGRESSIVE;
 
     return 0;
 }



More information about the ffmpeg-cvslog mailing list