diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2007-03-17 02:23:53 +0000 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2007-03-17 02:23:53 +0000 |
commit | a7f7965a27632d89259a392bea70a8dff8f15972 (patch) | |
tree | 5d8a79e2d8b3bebdcd289e968c831697b0ed850d | |
parent | 14eb3345baa6cd90fce6fa76401153c6e5ada98e (diff) | |
download | ffmpeg-a7f7965a27632d89259a392bea70a8dff8f15972.tar.gz |
remove useless if()
Originally committed as revision 8428 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 3c175a6619..2696771b24 100644 --- a/libavformat/utils.c +++ b/libavformat/utils.c @@ -632,7 +632,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 if(pkt->pts != AV_NOPTS_VALUE || pkt->dts != AV_NOPTS_VALUE || pkt->duration){ + } else { 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); |