mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2025-12-14 02:50:11 +01:00
lavf: Do not set cur_dts to undetermined before first_dts has been calculated as this would upset the start_time and first_dts calculation.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
@@ -1415,7 +1415,8 @@ void ff_read_frame_flush(AVFormatContext *s)
|
|||||||
av_free_packet(&st->cur_pkt);
|
av_free_packet(&st->cur_pkt);
|
||||||
}
|
}
|
||||||
st->last_IP_pts = AV_NOPTS_VALUE;
|
st->last_IP_pts = AV_NOPTS_VALUE;
|
||||||
st->cur_dts = AV_NOPTS_VALUE; /* we set the current DTS to an unspecified origin */
|
if(st->first_dts == AV_NOPTS_VALUE) st->cur_dts = 0;
|
||||||
|
else st->cur_dts = AV_NOPTS_VALUE; /* we set the current DTS to an unspecified origin */
|
||||||
st->reference_dts = AV_NOPTS_VALUE;
|
st->reference_dts = AV_NOPTS_VALUE;
|
||||||
/* fail safe */
|
/* fail safe */
|
||||||
st->cur_ptr = NULL;
|
st->cur_ptr = NULL;
|
||||||
|
|||||||
Reference in New Issue
Block a user