]> rtime.felk.cvut.cz Git - frescor/ffmpeg.git/commitdiff
Document padding for AVProbeData.
authorcehoyos <cehoyos@9553f0bf-9b14-0410-a0b8-cfaf0461ba5b>
Wed, 9 Sep 2009 22:55:10 +0000 (22:55 +0000)
committercehoyos <cehoyos@9553f0bf-9b14-0410-a0b8-cfaf0461ba5b>
Wed, 9 Sep 2009 22:55:10 +0000 (22:55 +0000)
Patch by roundup user shinya, tesutosan hotmail

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@19802 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b

libavformat/avformat.h

index 7254cb480f26aa021f56a502f037c0c834a7acb4..e49cf6e8f1c9bb68c9fa6682ee6c8af4b8708057 100644 (file)
@@ -145,8 +145,8 @@ struct AVCodecTag;
 /** This structure contains the data a format has to probe a file. */
 typedef struct AVProbeData {
     const char *filename;
-    unsigned char *buf;
-    int buf_size;
+    unsigned char *buf; /**< Buffer must have AVPROBE_PADDING_SIZE of extra allocated bytes filled with zero. */
+    int buf_size;       /**< Size of buf except extra allocated bytes */
 } AVProbeData;
 
 #define AVPROBE_SCORE_MAX 100               ///< maximum score, half of that is used for file-extension-based detection