From dffcdbb5f67c5b710b10d745caadcd49cad6ab01 Mon Sep 17 00:00:00 2001
From: Michael Niedermayer <michaelni@gmx.at>
Date: Mon, 15 Nov 2004 15:53:53 +0000
Subject: [PATCH] extradata and FF_INPUT_BUFFER_PADDING_SIZE doc

Originally committed as revision 3684 to svn://svn.ffmpeg.org/ffmpeg/trunk
---
 libavcodec/avcodec.h | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/libavcodec/avcodec.h b/libavcodec/avcodec.h
index afdce31fde2..7301b0db42a 100644
--- a/libavcodec/avcodec.h
+++ b/libavcodec/avcodec.h
@@ -673,6 +673,8 @@ typedef struct AVCodecContext {
      * mjpeg: huffman tables
      * rv10: additional flags
      * mpeg4: global headers (they can be in the bitstream or here)
+     * the allocated memory should be FF_INPUT_BUFFER_PADDING_SIZE bytes larger
+     * then extradata_size to avoid prolems if its read with the bitstream reader
      * - encoding: set/allocated/freed by lavc.
      * - decoding: set/allocated/freed by user.
      */
-- 
GitLab