# HG changeset patch # User aurel # Date 1199294276 0 # Node ID dc2e92d4a903efc4ba5c7e8667ef92ad26396f1a # Parent a174a3a0c2c0dd38dc5506a47031b25291c2232f move num_packets=0 where it belongs diff -r a174a3a0c2c0 -r dc2e92d4a903 matroskadec.c --- 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; }