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, 28 Sep 2016 12:23:06 +0000 (14:23 +0200)
commitc68ce48260cf374480439b8f0d658f02fe9932d4
treea5270f8045df1f1d4aaf1a229ed36d9a78fa025a
parentac8ac46641adef208485baebc3734463bf0bd266
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>
(cherry picked from commit ecc04b4f2f29ac676e6c1d1ebf20ec45f5385f1e)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
libavformat/utils.c