Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/FFmpeg/FFmpeg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Niedermayer <michael@niedermayer.cc>2015-07-10 19:31:42 +0300
committerMichael Niedermayer <michael@niedermayer.cc>2015-07-10 19:31:42 +0300
commit47d077337a62f3ece41ee90a4d5000876d5c46d1 (patch)
tree1b3e6c87aea25e12b9c76dfea3041ec0fb948152 /libavcodec/utils.c
parentb1e242bc565665420661e016127fe07b4b615ecb (diff)
avcodec/utils: Document 32 min for h264 width
Suggested-by: "Ronald S. Bultje" <rsbultje@gmail.com> Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
Diffstat (limited to 'libavcodec/utils.c')
-rw-r--r--libavcodec/utils.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/libavcodec/utils.c b/libavcodec/utils.c
index 925b3ed047..4245b1a813 100644
--- a/libavcodec/utils.c
+++ b/libavcodec/utils.c
@@ -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
// which is also done in mpeg decoders with lowres > 0
*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);
}