avformat/utils: fix timebase error in avformat_seek_file()
authorXinzheng Zhang <zhangxzheng@gmail.com>
Wed, 14 Sep 2016 08:13:45 +0000 (16:13 +0800)
committerMichael Niedermayer <michael@niedermayer.cc>
Wed, 14 Sep 2016 13:50:07 +0000 (15:50 +0200)
commitecc04b4f2f29ac676e6c1d1ebf20ec45f5385f1e
tree5cd6d5cf2b7dbd6722f2ea24298ed88d5ec7e878
parentc8528e54e57810535b94ccecbc9c711d67dd710f
avformat/utils: fix timebase error in avformat_seek_file()

When there is only one stream and stream_index has not specified,
The ts has been transferd by the timebase of stream0 without modifying the stream_index
In this condation it cause seek failure.

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
libavformat/utils.c