[FFmpeg-soc] [soc]: r4541 - seek_api/seektest/seek_test2.c
Baptiste Coudurier
baptiste.coudurier at gmail.com
Sun Jun 28 23:22:22 CEST 2009
spyfeng wrote:
> 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);
> }
Remember that values must be mixed to ensure all cases are tested and
works. Does seek test differ now ?
--
Baptiste COUDURIER GnuPG Key Id: 0x5C1ABAAA
Key fingerprint 8D77134D20CC9220201FC5DB0AC9325C5C1ABAAA
FFmpeg maintainer http://www.ffmpeg.org
More information about the FFmpeg-soc
mailing list