summaryrefslogtreecommitdiff
path: root/fftools/ffmpeg_demux.c
diff options
context:
space:
mode:
authorAnton Khirnov <anton@khirnov.net>2023-03-20 17:01:59 +0100
committerAnton Khirnov <anton@khirnov.net>2023-04-09 15:47:45 +0200
commit87e9f5ad3c119b1058c66bcc5747f1417e0fbddc (patch)
tree920e6bc07a3fd6881b271cbfea8f36b436f55206 /fftools/ffmpeg_demux.c
parent8e23a62eff08715ce5ec021c7b4de7ad9c716089 (diff)
downloadffmpeg-87e9f5ad3c119b1058c66bcc5747f1417e0fbddc.tar.gz
fftools/ffmpeg: move initializing next_[pd]ts to add_input_streams()
They are initialized to constants, so it makes most sense to do it as soon as possible.
Diffstat (limited to 'fftools/ffmpeg_demux.c')
-rw-r--r--fftools/ffmpeg_demux.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/fftools/ffmpeg_demux.c b/fftools/ffmpeg_demux.c
index db05ddb8e9..354d3165c9 100644
--- a/fftools/ffmpeg_demux.c
+++ b/fftools/ffmpeg_demux.c
@@ -675,6 +675,9 @@ static void add_input_streams(const OptionsContext *o, Demuxer *d)
st->discard = AVDISCARD_ALL;
ist->nb_samples = 0;
ist->first_dts = AV_NOPTS_VALUE;
+ ist->next_pts = AV_NOPTS_VALUE;
+ ist->next_dts = AV_NOPTS_VALUE;
+
ds->min_pts = INT64_MAX;
ds->max_pts = INT64_MIN;