OSDN Git Service
(root)
/
android-x86
/
external-ffmpeg.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
31756ab
)
mpegvideo: Return correct coded frame sizes from parser
author
Mark Thompson
<sw@jkqxz.net>
Wed, 26 Oct 2016 20:12:02 +0000
(21:12 +0100)
committer
Mark Thompson
<sw@jkqxz.net>
Mon, 14 Nov 2016 19:38:19 +0000
(19:38 +0000)
libavcodec/mpegvideo_parser.c
patch
|
blob
|
history
diff --git
a/libavcodec/mpegvideo_parser.c
b/libavcodec/mpegvideo_parser.c
index
3630375
..
27f2985
100644
(file)
--- 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