summaryrefslogtreecommitdiff
path: root/libavformat
diff options
context:
space:
mode:
authorBaptiste Coudurier <baptiste.coudurier@gmail.com>2006-05-18 15:17:09 +0000
committerBaptiste Coudurier <baptiste.coudurier@gmail.com>2006-05-18 15:17:09 +0000
commitc7e63546dc38616eb04a2d463170b3c247556149 (patch)
tree0656ad309908b3c0157ee7f7c06c25e05bf77420 /libavformat
parent6b991cb29fd03623bd9cc2faee01c832758233cf (diff)
fix keyframe check, stss might be there but count set to 0
Originally committed as revision 5401 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavformat')
-rw-r--r--libavformat/mov.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libavformat/mov.c b/libavformat/mov.c
index ade4168ee4..07e9d125ed 100644
--- a/libavformat/mov.c
+++ b/libavformat/mov.c
@@ -1867,7 +1867,7 @@ readchunk:
// If the keyframes table exists, mark any samples that are in the table as key frames.
// If no table exists, treat very sample as a key frame.
- if (sc->keyframes) {
+ if (sc->keyframe_count) {
a = 0;
b = sc->keyframe_count - 1;
@@ -2010,7 +2010,7 @@ static int mov_read_seek(AVFormatContext *s, int stream_index, int64_t sample_ti
}
// Step 3. Find the prior sync. sample using the Sync sample atom (stss)
- if (sc->keyframes) {
+ if (sc->keyframe_count) {
a = 0;
b = sc->keyframe_count - 1;
while (a < b) {