Hello all,

I am trying to detect when video playback has reached the end of the file,
so I can pause or rewind. Currently I'm comparing the return value of
av_read_frame for AVERROR_EOF, but sometimes, if I'm seeking too fast,
av_read_frame returns EOF in the middle of the stream. I guess some kind of
buffer is not filled yet. So how can I detect EOF in a reliable way?

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

Reply via email to