vaapi_encode: Add MPEG-2 support

(cherry picked from commit ca6ae3b77a)
This commit is contained in:
Mark Thompson 2017-01-09 19:17:37 +00:00 committed by Mark Thompson
parent eefa4b76ee
commit 3b95c7c17d
8 changed files with 481 additions and 3 deletions

View file

@ -320,6 +320,7 @@ static int vaapi_encode_issue(AVCodecContext *avctx,
err = AVERROR(ENOMEM);
goto fail;
}
slice->index = i;
pic->slices[i] = slice;
if (ctx->codec->slice_params_size > 0) {