Hello,

I used the following code: av_seek_frame(ctx, id, pos,
AVSEEK_FLAG_BACKWARD);

But it fails for pcm stream in avi file.
However I discovered that adding AVSEEK_FLAG_ANY solves the problem.
Apparently pcm data has no use for keyframes but this is disappointing.
What I`d like to know, is it safe to put AVSEEK_FLAG_ANY with all audio
formats without negative side effects? All I need is the next packet after
the seek must be healthy and its position <= pos.
_______________________________________________
Libav-user mailing list
[email protected]
http://ffmpeg.org/mailman/listinfo/libav-user

Reply via email to