aboutsummaryrefslogtreecommitdiffstats
path: root/libavformat/utils.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2012-03-07 21:41:54 +0100
committerMichael Niedermayer <michaelni@gmx.at>2012-03-08 00:45:22 +0100
commit4cda8aa1c5bc58f8a7f53a21a19b03e7379bbcdc (patch)
tree73a7b1f932af22c6a6ab7ce45d67ce60ab7f04a0 /libavformat/utils.c
parentf6daa9f4f67a40b2f5d8725ae6268d08dba505a0 (diff)
downloadffmpeg-4cda8aa1c5bc58f8a7f53a21a19b03e7379bbcdc.tar.gz
avformat_new_stream: fix initial last_dts value
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavformat/utils.c')
-rw-r--r--libavformat/utils.c1
1 files changed, 1 insertions, 0 deletions
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) {