diff --git a/libavformat/utils.c b/libavformat/utils.c index 9d1a761b8e..e4cc393c00 100644 --- a/libavformat/utils.c +++ b/libavformat/utils.c @@ -2869,6 +2869,7 @@ AVStream *avformat_new_stream(AVFormatContext *s, AVCodec *c) av_free(st); return NULL; } + st->info->last_dts = AV_NOPTS_VALUE; st->codec = avcodec_alloc_context3(c); if (s->iformat) {