[FFmpeg-cvslog] r17957 - trunk/tests/seek_test.c
michael
subversion
Sat Mar 14 16:53:57 CET 2009
Author: michael
Date: Sat Mar 14 16:53:56 2009
New Revision: 17957
Log:
Switch regression test to the new seeking API.
Modified:
trunk/tests/seek_test.c
Modified: trunk/tests/seek_test.c
==============================================================================
--- trunk/tests/seek_test.c Sat Mar 14 16:51:46 2009 (r17956)
+++ trunk/tests/seek_test.c Sat Mar 14 16:53:56 2009 (r17957)
@@ -91,7 +91,9 @@ int main(int argc, char **argv)
st= ic->streams[stream_id];
timestamp= av_rescale_q(timestamp, AV_TIME_BASE_Q, st->time_base);
}
- ret = av_seek_frame(ic, stream_id, timestamp, (i&1)*AVSEEK_FLAG_BACKWARD);
+ //FIXME fully test the new seek API
+ if(i&1) ret = avformat_seek_file(ic, stream_id, INT64_MIN, timestamp, timestamp, 0);
+ else ret = avformat_seek_file(ic, stream_id, timestamp, timestamp, INT64_MAX, 0);
printf("ret:%2d st:%2d ts:%f flags:%d\n", ret, stream_id, timestamp*(stream_id<0 ? 1.0/AV_TIME_BASE : av_q2d(st->time_base)), i&1);
}
More information about the ffmpeg-cvslog
mailing list