aboutsummaryrefslogtreecommitdiffstats
path: root/libavformat/avidec.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2004-05-24 15:13:23 +0000
committerMichael Niedermayer <michaelni@gmx.at>2004-05-24 15:13:23 +0000
commit4fc2c6447ff5432da131082662e0345f8772721c (patch)
treea7a1e06ef29842b849d83341e189af34c52e0df6 /libavformat/avidec.c
parentcde073b44865e9d5e3863e865af921a3bf1dac1f (diff)
downloadffmpeg-4fc2c6447ff5432da131082662e0345f8772721c.tar.gz
100l (avi seeking)
Originally committed as revision 3155 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavformat/avidec.c')
-rw-r--r--libavformat/avidec.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/libavformat/avidec.c b/libavformat/avidec.c
index fbc81f0135..31b5b5f2e4 100644
--- a/libavformat/avidec.c
+++ b/libavformat/avidec.c
@@ -597,8 +597,7 @@ static int avi_read_seek(AVFormatContext *s, int stream_index, int64_t timestamp
return -1;
ast = st->priv_data;
/* compute the frame number */
- frame_number = (timestamp * ast->rate) /
- (ast->scale * (int64_t)AV_TIME_BASE);
+ frame_number = timestamp;
#ifdef DEBUG_SEEK
printf("timestamp=%0.3f nb_indexes=%d frame_number=%d\n",
(double)timestamp / AV_TIME_BASE,