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/ac3dec.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libavcodec/ac3dec.c') diff --git a/libavcodec/ac3dec.c b/libavcodec/ac3dec.c index 12770db2de..4336ca5374 100644 --- a/libavcodec/ac3dec.c +++ b/libavcodec/ac3dec.c @@ -876,7 +876,7 @@ static int decode_audio_block(AC3DecodeContext *s, int blk) if (s->eac3 && get_bits1(gbc)) { /* TODO: parse enhanced coupling strategy info */ av_log_missing_feature(s->avctx, "Enhanced coupling", 1); - return -1; + return AVERROR_PATCHWELCOME; } /* determine which channels are coupled */ -- cgit v1.2.3