X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=libavcodec%2Futils.c;h=59d41ccbb64db10eafb3f3752bf9e34867975716;hb=e1182fac1afba92a4975917823a5f644bee7e6e8;hp=8c7d056da64548e707b08242a43d007b8753472c;hpb=c1c720d5279aa2e8e0518e2900f5f2b267ee974a;p=ffmpeg diff --git a/libavcodec/utils.c b/libavcodec/utils.c index 8c7d056da64..59d41ccbb64 100644 --- a/libavcodec/utils.c +++ b/libavcodec/utils.c @@ -312,7 +312,10 @@ void avcodec_align_dimensions2(AVCodecContext *s, int *width, int *height, *width = FFALIGN(*width, w_align); *height = FFALIGN(*height, h_align); - if (s->codec_id == AV_CODEC_ID_H264 || s->lowres) { + if (s->codec_id == AV_CODEC_ID_H264 || s->lowres || + s->codec_id == AV_CODEC_ID_VP5 || s->codec_id == AV_CODEC_ID_VP6 || + s->codec_id == AV_CODEC_ID_VP6F || s->codec_id == AV_CODEC_ID_VP6A + ) { // some of the optimized chroma MC reads one line too much // which is also done in mpeg decoders with lowres > 0 *height += 2;