Mercurial > libavformat.hg
comparison utils.c @ 3332:74e2cfc79cda libavformat
Warn user about invalid timestamps.
author | michael |
---|---|
date | Fri, 23 May 2008 17:52:42 +0000 |
parents | 374e74567a4e |
children | 7a823a401282 |
comparison
equal
deleted
inserted
replaced
3331:f89173ea4c5e | 3332:74e2cfc79cda |
---|---|
848 } | 848 } |
849 /* no more packets: really terminate parsing */ | 849 /* no more packets: really terminate parsing */ |
850 return ret; | 850 return ret; |
851 } | 851 } |
852 | 852 |
853 if(s->cur_pkt.pts != AV_NOPTS_VALUE && | |
854 s->cur_pkt.dts != AV_NOPTS_VALUE && | |
855 s->cur_pkt.pts < s->cur_pkt.dts){ | |
856 av_log(s, AV_LOG_WARNING, "Invalid timestamps stream=%d, pts=%"PRId64", dts=%"PRId64", size=%d\n", | |
857 s->cur_pkt.stream_index, | |
858 s->cur_pkt.pts, | |
859 s->cur_pkt.dts, | |
860 s->cur_pkt.size); | |
861 // av_free_packet(&s->cur_pkt); | |
862 // return -1; | |
863 } | |
864 | |
853 st = s->streams[s->cur_pkt.stream_index]; | 865 st = s->streams[s->cur_pkt.stream_index]; |
854 if(st->codec->debug & FF_DEBUG_PTS) | 866 if(st->codec->debug & FF_DEBUG_PTS) |
855 av_log(s, AV_LOG_DEBUG, "av_read_packet stream=%d, pts=%"PRId64", dts=%"PRId64", size=%d\n", | 867 av_log(s, AV_LOG_DEBUG, "av_read_packet stream=%d, pts=%"PRId64", dts=%"PRId64", size=%d\n", |
856 s->cur_pkt.stream_index, | 868 s->cur_pkt.stream_index, |
857 s->cur_pkt.pts, | 869 s->cur_pkt.pts, |