[FFmpeg-cvslog] lcl: use AVERROR_INVALIDDATA instead of AVERROR_UNKNOWN
Reinhard Tartler
git at videolan.org
Mon Apr 2 01:45:33 CEST 2012
ffmpeg | branch: release/0.8 | Reinhard Tartler <siretart at tauware.de> | Sun Mar 18 19:08:15 2012 +0100| [fd53da21a1707225ba9b69f3452725b175e2d8b8] | committer: Reinhard Tartler
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>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=fd53da21a1707225ba9b69f3452725b175e2d8b8
---
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 ffmpeg-cvslog
mailing list