You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-07-16 22:42:38 +02:00
remove useless if()
Originally committed as revision 8428 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
@ -632,7 +632,7 @@ static void compute_pkt_fields(AVFormatContext *s, AVStream *st,
|
|||||||
st->last_IP_pts= pkt->pts;
|
st->last_IP_pts= pkt->pts;
|
||||||
/* cannot compute PTS if not present (we can compute it only
|
/* cannot compute PTS if not present (we can compute it only
|
||||||
by knowing the futur */
|
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){
|
if(pkt->pts != AV_NOPTS_VALUE && pkt->duration){
|
||||||
int64_t old_diff= FFABS(st->cur_dts - pkt->duration - pkt->pts);
|
int64_t old_diff= FFABS(st->cur_dts - pkt->duration - pkt->pts);
|
||||||
int64_t new_diff= FFABS(st->cur_dts - pkt->pts);
|
int64_t new_diff= FFABS(st->cur_dts - pkt->pts);
|
||||||
|
Reference in New Issue
Block a user