summaryrefslogtreecommitdiffstats
path: root/libavcodec/dirac_dwt.c
diff options
context:
space:
mode:
authorAndreas Cadhalpun <andreas.cadhalpun@googlemail.com>2015-05-06 16:54:40 +0200
committerMichael Niedermayer <michaelni@gmx.at>2015-05-06 17:50:09 +0200
commit4b13a542a27d41dedd130fd57cd018c3bb9b54b5 (patch)
tree18f9a76586288fb0ca11d77ffc771c9546473601 /libavcodec/dirac_dwt.c
parent3c7d3d27be985e871775a1482fb8e2014022c4d5 (diff)
downloadffmpeg-streaming-4b13a542a27d41dedd130fd57cd018c3bb9b54b5.zip
ffmpeg-streaming-4b13a542a27d41dedd130fd57cd018c3bb9b54b5.tar.gz
dirac: use and forward error codes
Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com> Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec/dirac_dwt.c')
-rw-r--r--libavcodec/dirac_dwt.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/dirac_dwt.c b/libavcodec/dirac_dwt.c
index da2da75..ee3665e 100644
--- a/libavcodec/dirac_dwt.c
+++ b/libavcodec/dirac_dwt.c
@@ -537,7 +537,7 @@ int ff_spatial_idwt_init2(DWTContext *d, IDWTELEM *buffer, int width, int height
break;
default:
av_log(NULL, AV_LOG_ERROR, "Unknown wavelet type %d\n", type);
- return -1;
+ return AVERROR_INVALIDDATA;
}
if (HAVE_MMX) ff_spatial_idwt_init_mmx(d, type);
OpenPOWER on IntegriCloud