summaryrefslogtreecommitdiffstats
path: root/libavcodec/mpegvideo_parser.c
diff options
context:
space:
mode:
authorMark Thompson <sw@jkqxz.net>2016-10-26 21:12:02 +0100
committerMark Thompson <sw@jkqxz.net>2016-11-14 19:38:19 +0000
commit3297577f3eac1c87d48dedd527942de2bd28e7a5 (patch)
treee2f2a520e18ed0031b439b6347d6b0dbb5c93355 /libavcodec/mpegvideo_parser.c
parent31756abe29eb039a11c59a42cb12e0cc2aef3b97 (diff)
downloadffmpeg-streaming-3297577f3eac1c87d48dedd527942de2bd28e7a5.zip
ffmpeg-streaming-3297577f3eac1c87d48dedd527942de2bd28e7a5.tar.gz
mpegvideo: Return correct coded frame sizes from parser
Diffstat (limited to 'libavcodec/mpegvideo_parser.c')
-rw-r--r--libavcodec/mpegvideo_parser.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/libavcodec/mpegvideo_parser.c b/libavcodec/mpegvideo_parser.c
index 3630375..27f2985 100644
--- a/libavcodec/mpegvideo_parser.c
+++ b/libavcodec/mpegvideo_parser.c
@@ -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
OpenPOWER on IntegriCloud