mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-03-23 04:24:35 +02:00
mpegvideo: Return correct coded frame sizes from parser
This commit is contained in:
parent
0c559f7893
commit
309fe16a12
@ -168,8 +168,10 @@ static void mpegvideo_extract_headers(AVCodecParserContext *s,
|
|||||||
|
|
||||||
if (pix_fmt != AV_PIX_FMT_NONE) {
|
if (pix_fmt != AV_PIX_FMT_NONE) {
|
||||||
s->format = pix_fmt;
|
s->format = pix_fmt;
|
||||||
s->width = s->coded_width = pc->width;
|
s->width = pc->width;
|
||||||
s->height = s->coded_height = pc->height;
|
s->height = pc->height;
|
||||||
|
s->coded_width = FFALIGN(pc->width, 16);
|
||||||
|
s->coded_height = FFALIGN(pc->height, 16);
|
||||||
}
|
}
|
||||||
|
|
||||||
#if FF_API_AVCTX_TIMEBASE
|
#if FF_API_AVCTX_TIMEBASE
|
||||||
|
Loading…
x
Reference in New Issue
Block a user