diff options
author | Ruiling Song <ruiling.song@intel.com> | 2018-02-12 16:37:16 +0800 |
---|---|---|
committer | Luca Barbato <lu_zero@gentoo.org> | 2018-02-22 11:24:12 +0100 |
commit | 8ca39b855a7b0e4d9f726fa9d285bc8edcb953e6 (patch) | |
tree | 3339a9c8cab1ab42144f82c9dbfe6323636cec09 /libavutil/hwcontext_qsv.c | |
parent | 6d5a6dde5301c81e221a37b3f39bb03149492b98 (diff) | |
download | ffmpeg-8ca39b855a7b0e4d9f726fa9d285bc8edcb953e6.tar.gz |
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>
Diffstat (limited to 'libavutil/hwcontext_qsv.c')
-rw-r--r-- | libavutil/hwcontext_qsv.c | 1 |
1 files changed, 1 insertions, 0 deletions
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; } |