diff options
author | Gyan Doshi <ffmpeg@gyani.pro> | 2019-08-31 19:45:58 +0530 |
---|---|---|
committer | Gyan Doshi <ffmpeg@gyani.pro> | 2019-09-05 23:23:11 +0530 |
commit | fa697aa92f5dfebda11d53db971ec4ac6c517008 (patch) | |
tree | 9642ca80e6a283c14b2fc74fa45328aef0f069d8 /fftools | |
parent | dfa5d1a3667fa38e07373becc2401175b31d8228 (diff) | |
download | ffmpeg-fa697aa92f5dfebda11d53db971ec4ac6c517008.tar.gz |
ffmpeg: switch to avformat_seek_file for stream_loop
Fixes stream_loop with very short files where seeking is generic index
search
Diffstat (limited to 'fftools')
-rw-r--r-- | fftools/ffmpeg.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fftools/ffmpeg.c b/fftools/ffmpeg.c index 01f04103cf..b6ecb89893 100644 --- a/fftools/ffmpeg.c +++ b/fftools/ffmpeg.c @@ -4195,7 +4195,7 @@ static int seek_to_start(InputFile *ifile, AVFormatContext *is) int i, ret, has_audio = 0; int64_t duration = 0; - ret = av_seek_frame(is, -1, is->start_time, 0); + ret = avformat_seek_file(is, -1, INT64_MIN, is->start_time, is->start_time, 0); if (ret < 0) return ret; |