[FFmpeg-devel] [PATCH] lavf/img2dec: doxygen find_image_range() function

Stefano Sabatini stefasab at gmail.com
Sat Aug 4 18:38:43 CEST 2012


---
 libavformat/img2dec.c |   11 +++++++++--
 1 files changed, 9 insertions(+), 2 deletions(-)

diff --git a/libavformat/img2dec.c b/libavformat/img2dec.c
index 402caa8..90ad4ca 100644
--- a/libavformat/img2dec.c
+++ b/libavformat/img2dec.c
@@ -108,7 +108,15 @@ static int is_glob(const char *path)
 #endif
 }
 
-/* return -1 if no image found */
+/**
+ * Get number ranges of image files matched by path.
+ *
+ * @param pfirst_index pointer to index updated with the first number in the range
+ * @param plast_index  pointer to index updated with the last number in the range
+ * @param path         path which has to be matched by the image files in the range
+ * @param start_index  min accepted value for the first index in the range
+ * @return -1 if no image file could be found in the range
+ */
 static int find_image_range(int *pfirst_index, int *plast_index,
                             const char *path, int start_index)
 {
@@ -161,7 +169,6 @@ static int find_image_range(int *pfirst_index, int *plast_index,
     return -1;
 }
 
-
 static int read_probe(AVProbeData *p)
 {
     if (p->filename && ff_guess_image2_codec(p->filename)) {
-- 
1.7.5.4



More information about the ffmpeg-devel mailing list