From 717addecad77d85d329a4b502f4098d4912679d7 Mon Sep 17 00:00:00 2001 From: Diego Biurrun Date: Tue, 9 Oct 2012 00:41:34 +0200 Subject: Use proper return values in case of missing features --- libavcodec/amrwbdec.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libavcodec/amrwbdec.c') diff --git a/libavcodec/amrwbdec.c b/libavcodec/amrwbdec.c index 18b34cff9b..5cc96ab713 100644 --- a/libavcodec/amrwbdec.c +++ b/libavcodec/amrwbdec.c @@ -1111,7 +1111,7 @@ static int amrwb_decode_frame(AVCodecContext *avctx, void *data, if (ctx->fr_cur_mode == MODE_SID) { /* Comfort noise frame */ av_log_missing_feature(avctx, "SID mode", 1); - return -1; + return AVERROR_PATCHWELCOME; } ff_amr_bit_reorder((uint16_t *) &ctx->frame, sizeof(AMRWBFrame), -- cgit v1.2.3