[FFmpeg-cvslog] avidec: Return correct error code from avi_sync() in case of IO error.

Michael Niedermayer git at videolan.org
Wed Oct 26 23:45:20 CEST 2011


ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Wed Oct 26 23:14:35 2011 +0200| [742d218bf14c93202fdaa1703078c087f8fae0d0] | committer: Michael Niedermayer

avidec: Return correct error code from avi_sync() in case of IO error.

Found-by: Tanami, Ohad
Signed-off-by: Michael Niedermayer <michaelni at gmx.at>

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

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

diff --git a/libavformat/avidec.c b/libavformat/avidec.c
index 0995150..d210eb6 100644
--- a/libavformat/avidec.c
+++ b/libavformat/avidec.c
@@ -1001,6 +1001,8 @@ start_sync:
         }
     }
 
+    if(pb->error)
+        return pb->error;
     return AVERROR_EOF;
 }
 



More information about the ffmpeg-cvslog mailing list