Commit 4cda8aa1 authored by Michael Niedermayer's avatar Michael Niedermayer

avformat_new_stream: fix initial last_dts value

Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent f6daa9f4
......@@ -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) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment