From e10f5bd05cec8fe59bb43fd28c4c2a092ca5f440 Mon Sep 17 00:00:00 2001 From: Michael Niedermayer Date: Thu, 4 Apr 2013 04:01:12 +0200 Subject: avformat: Add a mechanism to allow demuxers to detect byte based seeking. Signed-off-by: Michael Niedermayer --- libavformat/utils.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'libavformat/utils.c') diff --git a/libavformat/utils.c b/libavformat/utils.c index 001b0e3179..c5d6d322c3 100644 --- a/libavformat/utils.c +++ b/libavformat/utils.c @@ -2018,6 +2018,8 @@ static int seek_frame_byte(AVFormatContext *s, int stream_index, int64_t pos, in avio_seek(s->pb, pos, SEEK_SET); + s->io_repositioned = 1; + return 0; } -- cgit v1.2.3