Mercurial > libavformat.hg
changeset 488:e25b5ad6603e libavformat
fix first timestamp when decoding mpeg-ps
author | michael |
---|---|
date | Wed, 30 Jun 2004 17:34:15 +0000 |
parents | 7942c1aa0028 |
children | aeb69a5f3756 |
files | utils.c |
diffstat | 1 files changed, 8 insertions(+), 1 deletions(-) [+] |
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);