changeset 1092:3252d6419540 libavformat

fix keyframe check, stss might be there but count set to 0
author bcoudurier
date Thu, 18 May 2006 15:17:09 +0000
parents 6207034ac05b
children 04f092701779
files mov.c
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/mov.c	Wed May 17 21:52:38 2006 +0000
+++ b/mov.c	Thu May 18 15:17:09 2006 +0000
@@ -1867,7 +1867,7 @@
 
     // 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 @@
     }
 
     // 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) {