Hi, I came across some strange behavior in the av_seek_frame call.
I was able to reproduce this in ffplay.c

by adding the following line to ffplay.c at line 1794 you can reproduce 
the behavior.

av_seek_frame( is->ic, -1, AV_TIME_BASE, AVSEEK_FLAG_BACKWARD);

I expected ffplay to start playing with a one second offset, instead it 
waits indefinitely for a frame, since avcodec_decode_video never returns 
a frame.

I don't think this is true for all formats, but it is for the file I 
tested it with.
You can find this file here: 
http://www.arjanhouben.nl/SDL_ffmpeg/ffmpeg/scrtest.mpg

It seems to come down to the fact that a seek is performed before the 
first packet in this file is decoded.

Am I right in assuming that a seek, even if called before the first 
decode, should work normally?
I tested this behavior with the latest SVN version in linux 8.10 and winXP.


thanks in advance,

- Arjan
_______________________________________________
libav-user mailing list
[email protected]
https://lists.mplayerhq.hu/mailman/listinfo/libav-user

Reply via email to