lavf: Initialize the stream info timestamps in avformat_new_stream
authorMartin Storsjö <martin@martin.st>
Sat, 11 Aug 2012 17:06:08 +0000 (20:06 +0300)
committerMartin Storsjö <martin@martin.st>
Sun, 12 Aug 2012 09:39:47 +0000 (12:39 +0300)
commit30c26c2442e4e44ac5a763c23c4b0fdd9921a7f5
tree3354216cd495449eab92d589648e416fe7286817
parent6e9bbc6525989f7dc51acc76712c6ca674053b60
lavf: Initialize the stream info timestamps in avformat_new_stream

These are normally initialized to AV_NOPTS_VALUE at the start
of avformat_find_stream_info, but if a new stream is found while
this function is running (e.g. like in mpegts), the newly added
AVStreams didn't have these values properly initalized, leading
to avformat_find_stream_info terminating too soon (when the
first timestamps are far from 0).

Signed-off-by: Martin Storsjö <martin@martin.st>
libavformat/utils.c