diff options
author | Clément Bœsch <ubitux@gmail.com> | 2012-11-23 21:11:49 +0100 |
---|---|---|
committer | Clément Bœsch <ubitux@gmail.com> | 2012-12-02 00:06:02 +0100 |
commit | b684f744ac1e4c5cbd6ac91d2be6098e1b122288 (patch) | |
tree | f1eba5bb241fdce3c31d0e28c2bfff313f915abe /ffmpeg_opt.c | |
parent | aae478036223ae16c24b9890d087feda2efbe38a (diff) | |
download | ffmpeg-b684f744ac1e4c5cbd6ac91d2be6098e1b122288.tar.gz |
ffmpeg: use avformat_seek_file() instead of av_seek_frame().
avformat_seek_file() is the new API. It will make sure the read_seek2()
callback is called when the demuxer has it.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Signed-off-by: Clément Bœsch <ubitux@gmail.com>
Diffstat (limited to 'ffmpeg_opt.c')
-rw-r--r-- | ffmpeg_opt.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ffmpeg_opt.c b/ffmpeg_opt.c index df85230805..c846a10e61 100644 --- a/ffmpeg_opt.c +++ b/ffmpeg_opt.c @@ -807,7 +807,7 @@ static int opt_input_file(void *optctx, const char *opt, const char *filename) /* if seeking requested, we execute it */ if (o->start_time != 0) { - ret = av_seek_frame(ic, -1, timestamp, AVSEEK_FLAG_BACKWARD); + ret = avformat_seek_file(ic, -1, INT64_MIN, timestamp, timestamp, 0); if (ret < 0) { av_log(NULL, AV_LOG_WARNING, "%s: could not seek to position %0.3f\n", filename, (double)timestamp / AV_TIME_BASE); |