diff --git a/libavformat/mpegts.c b/libavformat/mpegts.c index f6dff78a58..6c0c314f42 100644 --- a/libavformat/mpegts.c +++ b/libavformat/mpegts.c @@ -1061,6 +1061,8 @@ static PESContext *add_pes_stream(MpegTSContext *ts, int pid, int pcr_pid, int s pes->pcr_pid = pcr_pid; pes->stream_type = stream_type; pes->state = MPEGTS_SKIP; + pes->pts = AV_NOPTS_VALUE; + pes->dts = AV_NOPTS_VALUE; tss = mpegts_open_pes_filter(ts, pid, mpegts_push_data, pes); if (!tss) { av_free(pes);