# HG changeset patch # User cehoyos # Date 1252536910 0 # Node ID b22d48626092fb72e67c47916c84f4fc4ff31edd # Parent 00fcfe0596e88d944238f1ef59bb9ba16f70d798 Document padding for AVProbeData. Patch by roundup user shinya, tesutosan hotmail diff -r 00fcfe0596e8 -r b22d48626092 avformat.h --- 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