Mercurial > libavformat.hg
diff utils.c @ 488:e25b5ad6603e libavformat
fix first timestamp when decoding mpeg-ps
| author | michael |
|---|---|
| date | Wed, 30 Jun 2004 17:34:15 +0000 |
| parents | 36b0feeb9c1f |
| children | d95e74ef39e0 |
line wrap: on
line diff
--- 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;i<ic->nb_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);
