summaryrefslogtreecommitdiff
path: root/libavcodec/mpegvideo_parser.c
diff options
context:
space:
mode:
authorMark Thompson <sw@jkqxz.net>2016-10-26 20:28:18 +0100
committerMark Thompson <sw@jkqxz.net>2016-10-31 19:23:40 +0000
commit309fe16a126c6c00cc60070de3190cf23f5570fb (patch)
tree8c2f348fea110d52f0951717b4dfdf72d9382ced /libavcodec/mpegvideo_parser.c
parent0c559f7893e6f47aad1b0c1429287eaa218ec87c (diff)
downloadffmpeg-309fe16a126c6c00cc60070de3190cf23f5570fb.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 206f268a78..de70cd5632 100644
--- a/libavcodec/mpegvideo_parser.c
+++ b/libavcodec/mpegvideo_parser.c
@@ -168,8 +168,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