diff options
author | Stefano Sabatini <stefasab@gmail.com> | 2012-08-04 17:04:04 +0200 |
---|---|---|
committer | Stefano Sabatini <stefasab@gmail.com> | 2012-08-05 00:37:39 +0200 |
commit | e408e329d22b17ee1ec3378b846b1be8d4d12cb0 (patch) | |
tree | fc4a6e7acebd2bb17ddcfe6ceb199e8d859afb95 /libavformat | |
parent | a30e776ff153d678811dabbcc6fc7523910e2935 (diff) | |
download | ffmpeg-streaming-e408e329d22b17ee1ec3378b846b1be8d4d12cb0.zip ffmpeg-streaming-e408e329d22b17ee1ec3378b846b1be8d4d12cb0.tar.gz |
lavf/img2dec: rename find_image_range() "max_start" parameter to "start_index"
The new name seems more consistent with the assumed logic.
"start_index" represents the minimum accepted value as first index, and
not the maximum value as implicitely assumed by the previous name.
Diffstat (limited to 'libavformat')
-rw-r--r-- | libavformat/img2dec.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libavformat/img2dec.c b/libavformat/img2dec.c index 24006a8..402caa8 100644 --- a/libavformat/img2dec.c +++ b/libavformat/img2dec.c @@ -110,13 +110,13 @@ static int is_glob(const char *path) /* return -1 if no image found */ static int find_image_range(int *pfirst_index, int *plast_index, - const char *path, int max_start) + const char *path, int start_index) { char buf[1024]; int range, last_index, range1, first_index; /* find the first image */ - for (first_index = max_start; first_index < max_start + 5; first_index++) { + for (first_index = start_index; first_index < start_index + 5; first_index++) { if (av_get_frame_filename(buf, sizeof(buf), path, first_index) < 0){ *pfirst_index = *plast_index = 1; |