diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2007-03-20 13:59:59 +0000 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2007-03-20 13:59:59 +0000 |
commit | 028d6f3e712d6daaab4c44ffc556a90fb933d50b (patch) | |
tree | a225a1b59f8e7b62d031a2cd4e504bddd189c2ff | |
parent | 1424a507729336740fd0fc96a7616961af5e2bbe (diff) | |
download | ffmpeg-028d6f3e712d6daaab4c44ffc556a90fb933d50b.tar.gz |
revert r8428, the check was not that useless
should fix constant pts=0 with broken demuxers
Originally committed as revision 8454 to svn://svn.ffmpeg.org/ffmpeg/trunk
-rw-r--r-- | libavformat/utils.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/utils.c b/libavformat/utils.c index b5893de799..417e81c5d7 100644 --- a/libavformat/utils.c +++ b/libavformat/utils.c @@ -633,7 +633,7 @@ static void compute_pkt_fields(AVFormatContext *s, AVStream *st, st->last_IP_pts= pkt->pts; /* cannot compute PTS if not present (we can compute it only by knowing the futur */ - } else { + } else if(pkt->pts != AV_NOPTS_VALUE || pkt->dts != AV_NOPTS_VALUE || pkt->duration){ if(pkt->pts != AV_NOPTS_VALUE && pkt->duration){ int64_t old_diff= FFABS(st->cur_dts - pkt->duration - pkt->pts); int64_t new_diff= FFABS(st->cur_dts - pkt->pts); |