From f7813a5324be39d13ab536c245d15dfc602a7849 Mon Sep 17 00:00:00 2001 From: Tim Redfern Date: Sun, 29 Dec 2013 12:19:38 +0000 Subject: basic type mechanism working --- ffmpeg/libavformat/seek-test.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'ffmpeg/libavformat/seek-test.c') diff --git a/ffmpeg/libavformat/seek-test.c b/ffmpeg/libavformat/seek-test.c index 34ac4de..8b0611d 100644 --- a/ffmpeg/libavformat/seek-test.c +++ b/ffmpeg/libavformat/seek-test.c @@ -64,6 +64,7 @@ int main(int argc, char **argv) int64_t seekfirst = AV_NOPTS_VALUE; int firstback=0; int frame_count = 1; + int duration = 4; for(i=2; i25) break; stream_id= (i>>1)%(ic->nb_streams+1) - 1; - timestamp= (i*19362894167LL) % (4*AV_TIME_BASE) - AV_TIME_BASE; + timestamp= (i*19362894167LL) % (duration*AV_TIME_BASE) - AV_TIME_BASE; if(stream_id>=0){ st= ic->streams[stream_id]; timestamp= av_rescale_q(timestamp, AV_TIME_BASE_Q, st->time_base); -- cgit v1.2.3