On Tue, 2010-11-23 at 23:30 +0200, Amihud Bruchim wrote:

> /It seems that /av_read_frame /doesn't read the packet which i seek for 
> with /av_seek_frame /even though seek operation succeeded (i verified it 
> on AVFormatContext->pb->pos) and I'm pretty sure it reads the next 
> packet according to packets order within file.

> My file format is avi and I'm seeking using byte seek option.

Is there a reason you are using the byte seek option?  Unless you are
making sure your byte position is exactly at the start of a frame
header, av_read_frame is going to rejects the next read because it's not
a valid frame.  The subsequent av_read_frame picks up the next full
frame and works properly.

--Mike

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

Reply via email to