<div dir="ltr">Never mind It was a mis-understanding in my part, due to file being small and frames being buffered to a circular frame buffer almost instantaneously <br>made me think seek was not working. <br></div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Nov 9, 2015 at 1:55 PM, Ratin <span dir="ltr"><<a href="mailto:ratin3@gmail.com" target="_blank">ratin3@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div>Hi, I use seek to loop back to beginning of a normal mp4 file with h.264 codec video and aac audio. It appears that av_read_frame keep throwing AVERROR_EOF after seek. It wasn't like this in earlier versions. <br><br>int64_t seek_target=av_rescale_q(seek_target, AV_TIME_BASE_Q, pFormatCtx->streams[packet->stream_index]->time_base);<br><br>error = av_seek_frame(pFormatCtx, -1, seek_target, AVSEEK_FLAG_ANY);<br><br></div>While the seek itself doesnt produce any error, the av_read_frame keep throwing the error code 0xdfb9b0bb, which av_strerror reports as EOF. The file loops fine in vlc.<br><br>fileStreamingThread: Error while reading dfb9b0bb : End of file <br><div><br><br></div><div>Anybody know what I am doing wrong? <br><br></div><div>Thanks<span class="HOEnZb"><font color="#888888"><br><br></font></span></div><span class="HOEnZb"><font color="#888888"><div>Ratin<br></div></font></span></div>
</blockquote></div><br></div>