[FFmpeg-cvslog] tiffenc: fix return value.

Michael Niedermayer git at videolan.org
Thu Mar 22 19:10:36 CET 2012


ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Thu Mar 22 16:17:30 2012 +0100| [ea8fc91886b39fd10b8e7950f879f515911d54b8] | committer: Michael Niedermayer

tiffenc: fix return value.

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

 libavcodec/tiffenc.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/libavcodec/tiffenc.c b/libavcodec/tiffenc.c
index c061ac9..8cda2b2 100644
--- a/libavcodec/tiffenc.c
+++ b/libavcodec/tiffenc.c
@@ -463,7 +463,7 @@ fail:
     av_free(strip_sizes);
     av_free(strip_offsets);
     av_free(yuv_line);
-    return ret;
+    return ret < 0 ? ret : 0;
 }
 
 #define OFFSET(x) offsetof(TiffEncoderContext, x)



More information about the ffmpeg-cvslog mailing list