[Libav-user] av_seek_frame

Alex Cohn alexcohn at netvision.net.il
Thu Jun 2 21:27:34 CEST 2011


Hello,

I am trying to begin decoding h264 video stream in .mp4 container from
some offset. But whether I choose AVSEEK_FLAG_FRAME|AVSEEK_FLAG_ANY or
AVSEEK_FLAG_FRAME I always end positioned on a keyframe. Is there a
reliable (i.e. codec-independent) way to know the true frame number
after av_seek_frame()?

Thanks,
Alex Cohn


More information about the Libav-user mailing list