diff options
author | Diego Biurrun <diego@biurrun.de> | 2012-10-09 00:41:34 +0200 |
---|---|---|
committer | Diego Biurrun <diego@biurrun.de> | 2012-10-12 20:56:54 +0200 |
commit | 717addecad77d85d329a4b502f4098d4912679d7 (patch) | |
tree | a947a67910599b4bc30e26fe2e5726f90664adf3 /libavcodec/aacdec.c | |
parent | 9e6ea3cef9927be46973c8e972656b4264f8f1f6 (diff) | |
download | ffmpeg-717addecad77d85d329a4b502f4098d4912679d7.tar.gz |
Use proper return values in case of missing features
Diffstat (limited to 'libavcodec/aacdec.c')
-rw-r--r-- | libavcodec/aacdec.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/libavcodec/aacdec.c b/libavcodec/aacdec.c index 859414adc9..4a6d3905f4 100644 --- a/libavcodec/aacdec.c +++ b/libavcodec/aacdec.c @@ -634,7 +634,7 @@ static int decode_ga_specific_config(AACContext *ac, AVCodecContext *avctx, if (get_bits1(gb)) { // frameLengthFlag av_log_missing_feature(avctx, "960/120 MDCT window", 1); - return -1; + return AVERROR_PATCHWELCOME; } if (get_bits1(gb)) // dependsOnCoreCoder @@ -1635,7 +1635,7 @@ static int decode_ics(AACContext *ac, SingleChannelElement *sce, return -1; if (get_bits1(gb)) { av_log_missing_feature(ac->avctx, "SSR", 1); - return -1; + return AVERROR_PATCHWELCOME; } } @@ -2324,7 +2324,7 @@ static int parse_adts_frame_header(AACContext *ac, GetBitContext *gb) if (size > 0) { if (hdr_info.num_aac_frames != 1) { av_log_missing_feature(ac->avctx, "More than one AAC RDB per ADTS frame", 0); - return -1; + return AVERROR_PATCHWELCOME; } push_output_configuration(ac); if (hdr_info.chan_config) { @@ -2609,7 +2609,7 @@ static int latm_decode_audio_specific_config(struct LATMContext *latmctx, if (config_start_bit % 8) { av_log_missing_feature(latmctx->aac_ctx.avctx, "Non-byte-aligned audio-specific config", 1); - return AVERROR_INVALIDDATA; + return AVERROR_PATCHWELCOME; } if (asclen <= 0) return AVERROR_INVALIDDATA; |