[Ffmpeg-devel] [PATCH] ffplay seeking because url_feof() not working

Andy Parkins andyparkins
Wed Jun 15 16:14:00 CEST 2005


Hello,

I've attached a patch to ffplay.  Seeking was failing for me towards the end 
of a file because in the test:

  if (url_feof(&ic->pb) && url_ferror(&ic->pb) == 0) {

url_feof(&ic->pb) is not returning true when it should be.  I've simply 
removed this test and added an error message.  I think that by implication, 
because we know at this point that av_read_frame() has failed, if there is no 
error we must be at EOF.  Am I right?  


Andy
-- 
Dr Andrew Parkins, M Eng (hons), AMIEE

-------------- next part --------------
A non-text attachment was scrubbed...
Name: ffplay.patch
Type: text/x-diff
Size: 1289 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20050615/3258149f/attachment.patch>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20050615/3258149f/attachment.pgp>



More information about the ffmpeg-devel mailing list