From ea8fc91886b39fd10b8e7950f879f515911d54b8 Mon Sep 17 00:00:00 2001 From: Michael Niedermayer Date: Thu, 22 Mar 2012 16:17:30 +0100 Subject: [PATCH] tiffenc: fix return value. --- libavcodec/tiffenc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavcodec/tiffenc.c b/libavcodec/tiffenc.c index c061ac985f..8cda2b2d36 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)