[FFmpeg-cvslog] Fix url_feof() for file appendings.

Michael Niedermayer git
Thu Mar 10 20:46:50 CET 2011


ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Thu Mar 10 13:21:52 2011 +0100| [3bd624b4ee355328382295af411f5343b1329f43] | committer: Michael Niedermayer

Fix url_feof() for file appendings.
Signed-off-by: Michael Niedermayer <michaelni at gmx.at>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=3bd624b4ee355328382295af411f5343b1329f43
---

 libavformat/aviobuf.c |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/libavformat/aviobuf.c b/libavformat/aviobuf.c
index 7762d6c..1bdc478 100644
--- a/libavformat/aviobuf.c
+++ b/libavformat/aviobuf.c
@@ -269,6 +269,10 @@ int url_feof(AVIOContext *s)
 {
     if(!s)
         return 0;
+    if(s->eof_reached){
+        s->eof_reached=0;
+        fill_buffer(s);
+    }
     return s->eof_reached;
 }
 




More information about the ffmpeg-cvslog mailing list