changeset 5168:b22d48626092 libavformat

Document padding for AVProbeData. Patch by roundup user shinya, tesutosan hotmail
author cehoyos
date Wed, 09 Sep 2009 22:55:10 +0000
parents 00fcfe0596e8
children 0d8ad70ca914
files avformat.h
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/avformat.h	Wed Sep 09 16:26:24 2009 +0000
+++ b/avformat.h	Wed Sep 09 22:55:10 2009 +0000
@@ -145,8 +145,8 @@
 /** 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