# HG changeset patch # User michael # Date 1088616855 0 # Node ID e25b5ad6603ea17b098fcf782b8292dfc94d5b9e # Parent 7942c1aa0028cdb59d0f68e96c7e7adb84608c23 fix first timestamp when decoding mpeg-ps diff -r 7942c1aa0028 -r e25b5ad6603e utils.c --- a/utils.c Fri Jun 25 20:03:51 2004 +0000 +++ b/utils.c Wed Jun 30 17:34:15 2004 +0000 @@ -1326,8 +1326,15 @@ /* flush packet queue */ flush_packet_queue(ic); + + for(i=0;inb_streams;i++) { + st = ic->streams[i]; + if (st->parser) { + av_parser_close(st->parser); + st->parser= NULL; + } + } - /* we read the first packets to get the first PTS (not fully accurate, but it is enough now) */ url_fseek(&ic->pb, 0, SEEK_SET);