[FFmpeg-soc] [soc]: r4541 - seek_api/seektest/seek_test2.c

spyfeng subversion at mplayerhq.hu
Sun Jun 28 05:53:45 CEST 2009


Author: spyfeng
Date: Sun Jun 28 05:53:45 2009
New Revision: 4541

Log:
modify the seek range as default value.

Modified:
   seek_api/seektest/seek_test2.c

Modified: seek_api/seektest/seek_test2.c
==============================================================================
--- seek_api/seektest/seek_test2.c	Sun Jun 28 05:37:40 2009	(r4540)
+++ seek_api/seektest/seek_test2.c	Sun Jun 28 05:53:45 2009	(r4541)
@@ -96,8 +96,8 @@ int main(int argc, char **argv)
             timestamp= av_rescale_q(timestamp, AV_TIME_BASE_Q, st->time_base);
         }
         //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);
+        if(i&1) ret = avformat_seek_file(ic, stream_id, INT64_MIN, timestamp, INT64_MAX, 0);
+        else    ret = avformat_seek_file(ic, stream_id, INT64_MIN, timestamp, INT64_MAX, 0);
         printf("ret:%2d st:%2d ts:%.2f flags:%d\n", ret, stream_id, timestamp*(stream_id<0 ? 0.09:1/*1.0/AV_TIME_BASE : av_q2d(st->time_base*90000)*/), i&1);
     }
 


More information about the FFmpeg-soc mailing list