mpegvideo: Return correct coded frame sizes from parser

This commit is contained in:
Mark Thompson 2016-10-26 21:12:02 +01:00
parent 31756abe29
commit 3297577f3e
1 changed files with 4 additions and 2 deletions

View File

@ -151,8 +151,10 @@ static void mpegvideo_extract_headers(AVCodecParserContext *s,
if (pix_fmt != AV_PIX_FMT_NONE) {
s->format = pix_fmt;
s->width = s->coded_width = pc->width;
s->height = s->coded_height = pc->height;
s->width = pc->width;
s->height = pc->height;
s->coded_width = FFALIGN(pc->width, 16);
s->coded_height = FFALIGN(pc->height, 16);
}
#if FF_API_AVCTX_TIMEBASE