projects
/
platform
/
upstream
/
libav.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
07db7a0
)
img2dec: correctly use the parsed value from -start_number
author
Vittorio Giovara
<vittorio.giovara@gmail.com>
Tue, 6 Jan 2015 15:47:18 +0000
(16:47 +0100)
committer
Vittorio Giovara
<vittorio.giovara@gmail.com>
Sun, 22 Feb 2015 23:51:15 +0000
(23:51 +0000)
Previously the image sequence was always starting from the minimum
number rather than the requested one.
CC: libav-stable@libav.org
libavformat/img2dec.c
patch
|
blob
|
history
diff --git
a/libavformat/img2dec.c
b/libavformat/img2dec.c
index
f7f0a11
..
b73554e
100644
(file)
--- a/
libavformat/img2dec.c
+++ b/
libavformat/img2dec.c
@@
-194,7
+194,7
@@
static int img_read_header(AVFormatContext *s1)
return AVERROR(ENOENT);
s->img_first = first_index;
s->img_last = last_index;
- s->img_number = first_index;
+ s->img_number =
s->start_number != 1 ? s->start_number :
first_index;
/* compute duration */
st->start_time = 0;
st->duration = last_index - first_index + 1;