git.videolan.org
/
ffmpeg.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ba98693
)
mov: Treat keyframe indexes as 1-origin if starting at non-zero.
author
Yusuke Nakamura
<muken.the.vfrmaniac@gmail.com>
Mon, 16 Apr 2012 14:27:45 +0000
(23:27 +0900)
committer
Derek Buitenhuis
<derek.buitenhuis@gmail.com>
Sat, 21 Apr 2012 18:04:33 +0000
(14:04 -0400)
Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
libavformat/mov.c
patch
|
blob
|
history
diff --git
a/libavformat/mov.c
b/libavformat/mov.c
index
a0c5393
..
747f062
100644
(file)
--- a/
libavformat/mov.c
+++ b/
libavformat/mov.c
@@
-1754,7
+1754,7
@@
static void mov_build_index(MOVContext *mov, AVStream *st)
unsigned int stts_sample = 0;
unsigned int sample_size;
unsigned int distance = 0;
- int key_off = (sc->keyframes && sc->keyframes[0]
== 1) || (sc->stps_data && sc->stps_data[0] == 1
);
+ int key_off = (sc->keyframes && sc->keyframes[0]
> 0) || (sc->stps_data && sc->stps_data[0] > 0
);
current_dts -= sc->dts_shift;