Hi,
I'm trying to use /av_seek_frame/ and /av_read_frame.
/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.
Did i miss something?
/
The code:
av_init_packet(&pkt);
ret = av_seek_frame(fmt_ctx, 2, .pos, AVSEEK_FLAG_BYTE);
calling avcodec_flush_buffers for video streams
ret = av_read_frame(fmt_ctx, &pkt);
Thanks,
Ami
/
This mail was sent via Mail-SeCure system.
_______________________________________________
libav-user mailing list
[email protected]
https://lists.mplayerhq.hu/mailman/listinfo/libav-user