qsv: Default PicStruct to progressive
authorRuiling Song <ruiling.song@intel.com>
Mon, 12 Feb 2018 08:37:16 +0000 (16:37 +0800)
committerLuca Barbato <lu_zero@gentoo.org>
Thu, 22 Feb 2018 10:24:12 +0000 (11:24 +0100)
The PicStruct is required by MediaSDK, so give a default value.
hwupload does not work without this.

Signed-off-by: Ruiling Song <ruiling.song@intel.com>
Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
libavutil/hwcontext_qsv.c

index 9fa603c..73b5f24 100644 (file)
@@ -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;
 }