changeset 2881:dc2e92d4a903 libavformat

move num_packets=0 where it belongs
author aurel
date Wed, 02 Jan 2008 17:17:56 +0000
parents a174a3a0c2c0
children 6bf5323204b7
files matroskadec.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/matroskadec.c	Wed Jan 02 10:45:28 2008 +0000
+++ b/matroskadec.c	Wed Jan 02 17:17:56 2008 +0000
@@ -858,6 +858,7 @@
         }
         av_free(matroska->packets);
         matroska->packets = NULL;
+        matroska->num_packets = 0;
     }
 }
 
@@ -2675,7 +2676,6 @@
     url_fseek(s->pb, st->index_entries[index].pos, SEEK_SET);
     matroska->skip_to_keyframe = !(flags & AVSEEK_FLAG_ANY);
     matroska->skip_to_stream = st;
-    matroska->num_packets = 0;
     matroska->peek_id = 0;
     return 0;
 }