summaryrefslogtreecommitdiff
path: root/libavcodec/flacdec.c
diff options
context:
space:
mode:
authorDiego Biurrun <diego@biurrun.de>2012-10-09 00:41:34 +0200
committerDiego Biurrun <diego@biurrun.de>2012-10-12 20:56:54 +0200
commit717addecad77d85d329a4b502f4098d4912679d7 (patch)
treea947a67910599b4bc30e26fe2e5726f90664adf3 /libavcodec/flacdec.c
parent9e6ea3cef9927be46973c8e972656b4264f8f1f6 (diff)
Use proper return values in case of missing features
Diffstat (limited to 'libavcodec/flacdec.c')
-rw-r--r--libavcodec/flacdec.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/flacdec.c b/libavcodec/flacdec.c
index f3f1b3a283..b39feb679b 100644
--- a/libavcodec/flacdec.c
+++ b/libavcodec/flacdec.c
@@ -372,7 +372,7 @@ static inline int decode_subframe(FLACContext *s, int channel)
}
if (bps > 32) {
av_log_missing_feature(s->avctx, "decorrelated bit depth > 32", 0);
- return -1;
+ return AVERROR_PATCHWELCOME;
}
//FIXME use av_log2 for types