summaryrefslogtreecommitdiff
path: root/libavformat/ffm.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2004-10-11 23:53:53 +0000
committerMichael Niedermayer <michaelni@gmx.at>2004-10-11 23:53:53 +0000
commit7b3c1382bf46615e3faea72b62b6dab83e4142a7 (patch)
tree0a31847fbc7101c59d4cf309abed68b3fda59d2b /libavformat/ffm.c
parentb1d041c15c6b45cde682f4dfd12d15a0709da399 (diff)
downloadffmpeg-7b3c1382bf46615e3faea72b62b6dab83e4142a7.tar.gz
100l (forgoten seeking functions)
Originally committed as revision 3585 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavformat/ffm.c')
-rw-r--r--libavformat/ffm.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libavformat/ffm.c b/libavformat/ffm.c
index ce18d5fe9a..2867d11e0f 100644
--- a/libavformat/ffm.c
+++ b/libavformat/ffm.c
@@ -627,7 +627,7 @@ static int64_t get_pts(AVFormatContext *s, offset_t pos)
/* seek to a given time in the file. The file read pointer is
positionned at or before pts. XXX: the following code is quite
approximative */
-static int ffm_seek(AVFormatContext *s, int64_t wanted_pts)
+static int ffm_seek(AVFormatContext *s, int stream_index, int64_t wanted_pts, int flags)
{
FFMContext *ffm = s->priv_data;
offset_t pos_min, pos_max, pos;
@@ -662,7 +662,7 @@ static int ffm_seek(AVFormatContext *s, int64_t wanted_pts)
pos_min = pos + FFM_PACKET_SIZE;
}
}
- pos = pos_min;
+ pos = (flags & AVSEEK_FLAG_BACKWARD) ? pos_min : pos_max;
if (pos > 0)
pos -= FFM_PACKET_SIZE;
found: