Commit 47d07733 authored by Michael Niedermayer's avatar Michael Niedermayer

avcodec/utils: Document 32 min for h264 width

Suggested-by: 's avatar"Ronald S. Bultje" <rsbultje@gmail.com>
Signed-off-by: 's avatarMichael Niedermayer <michael@niedermayer.cc>
parent b1e242bc
...@@ -432,6 +432,11 @@ void avcodec_align_dimensions2(AVCodecContext *s, int *width, int *height, ...@@ -432,6 +432,11 @@ void avcodec_align_dimensions2(AVCodecContext *s, int *width, int *height,
// some of the optimized chroma MC reads one line too much // some of the optimized chroma MC reads one line too much
// which is also done in mpeg decoders with lowres > 0 // which is also done in mpeg decoders with lowres > 0
*height += 2; *height += 2;
// H.264 uses edge emulation for out of frame motion vectors, for this
// it requires a temporary area large enough to hold a 21x21 block,
// increasing witdth ensure that the temporary area is large enough,
// the next rounded up width is 32
*width = FFMAX(*width, 32); *width = FFMAX(*width, 32);
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment