Commit e2997274 authored by Aurelien Jacobs's avatar Aurelien Jacobs

move num_packets=0 where it belongs

Originally committed as revision 11373 to svn://svn.ffmpeg.org/ffmpeg/trunk
parent 920d3609
...@@ -858,6 +858,7 @@ matroska_clear_queue (MatroskaDemuxContext *matroska) ...@@ -858,6 +858,7 @@ matroska_clear_queue (MatroskaDemuxContext *matroska)
} }
av_free(matroska->packets); av_free(matroska->packets);
matroska->packets = NULL; matroska->packets = NULL;
matroska->num_packets = 0;
} }
} }
...@@ -2675,7 +2676,6 @@ matroska_read_seek (AVFormatContext *s, int stream_index, int64_t timestamp, ...@@ -2675,7 +2676,6 @@ matroska_read_seek (AVFormatContext *s, int stream_index, int64_t timestamp,
url_fseek(s->pb, st->index_entries[index].pos, SEEK_SET); url_fseek(s->pb, st->index_entries[index].pos, SEEK_SET);
matroska->skip_to_keyframe = !(flags & AVSEEK_FLAG_ANY); matroska->skip_to_keyframe = !(flags & AVSEEK_FLAG_ANY);
matroska->skip_to_stream = st; matroska->skip_to_stream = st;
matroska->num_packets = 0;
matroska->peek_id = 0; matroska->peek_id = 0;
return 0; return 0;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment