<div dir="ltr"><div><div><div><div><div>Hello,<br><br></div>I used the following code: av_seek_frame(ctx, id, pos, AVSEEK_FLAG_BACKWARD);<br><br></div>But it fails for pcm stream in avi file.<br></div>However I discovered that adding AVSEEK_FLAG_ANY solves the problem.<br></div>Apparently pcm data has no use for keyframes but this is disappointing.<br></div>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.<br></div>