Browse Source

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@intel.com>
Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
tags/n4.0
Ruiling Song Luca Barbato 7 years ago
parent
commit
8ca39b855a
1 changed files with 1 additions and 0 deletions
  1. +1
    -0
      libavutil/hwcontext_qsv.c

+ 1
- 0
libavutil/hwcontext_qsv.c View File

@@ -313,6 +313,7 @@ static int qsv_init_surface(AVHWFramesContext *ctx, mfxFrameSurface1 *surf)
surf->Info.CropH = ctx->height; surf->Info.CropH = ctx->height;
surf->Info.FrameRateExtN = 25; surf->Info.FrameRateExtN = 25;
surf->Info.FrameRateExtD = 1; surf->Info.FrameRateExtD = 1;
surf->Info.PicStruct = MFX_PICSTRUCT_PROGRESSIVE;


return 0; return 0;
} }


Loading…
Cancel
Save