[libav-commits] lcl: use AVERROR_INVALIDDATA instead of AVERROR_UNKNOWN

Reinhard Tartler git at libav.org
Sun Apr 1 19:05:01 CEST 2012


Module: libav
Branch: release/0.7
Commit: fd53da21a1707225ba9b69f3452725b175e2d8b8

Author:    Reinhard Tartler <siretart at tauware.de>
Committer: Reinhard Tartler <siretart at tauware.de>
Date:      Sun Mar 18 19:08:15 2012 +0100

lcl: use AVERROR_INVALIDDATA instead of AVERROR_UNKNOWN

While bogus, this change avoids the necessity to backport
AVERROR_UNKNOWN, which is not entirely trivial.

Signed-off-by: Reinhard Tartler <siretart at tauware.de>

---

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

diff --git a/libavcodec/lcldec.c b/libavcodec/lcldec.c
index 8f203eb..be5189a 100644
--- a/libavcodec/lcldec.c
+++ b/libavcodec/lcldec.c
@@ -601,7 +601,7 @@ static av_cold int decode_init(AVCodecContext *avctx)
         if (zret != Z_OK) {
             av_log(avctx, AV_LOG_ERROR, "Inflate init error: %d\n", zret);
             av_freep(&c->decomp_buf);
-            return AVERROR_UNKNOWN;
+            return AVERROR_INVALIDDATA;
         }
     }
 #endif



More information about the libav-commits mailing list