On 22/03/17 09:41, Steve Lhomme wrote: > --- > libavcodec/mpeg12dec.c | 3 +++ > 1 file changed, 3 insertions(+) > > diff --git a/libavcodec/mpeg12dec.c b/libavcodec/mpeg12dec.c > index afdd652b6..e37ae0f1d 100644 > --- a/libavcodec/mpeg12dec.c > +++ b/libavcodec/mpeg12dec.c > @@ -1207,6 +1207,9 @@ static int mpeg_decode_postinit(AVCodecContext *avctx) > if (ret < 0) > return ret; > > + avctx->coded_width = FFALIGN(avctx->coded_width, 16); > + avctx->coded_height = FFALIGN(avctx->coded_height, > s->progressive_sequence ? 16: 32); > + > avctx->bit_rate = s->bit_rate; > s1->save_aspect_info = s->aspect_ratio_info; > s1->save_width = s->width; >
LGTM. The parser should probably be updated as well to match (mpegvideo_parser.c:163). Thanks, - Mark _______________________________________________ libav-devel mailing list [email protected] https://lists.libav.org/mailman/listinfo/libav-devel
