summaryrefslogtreecommitdiff
path: root/libavcodec/aacdec.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2011-08-07 00:32:11 +0200
committerMichael Niedermayer <michaelni@gmx.at>2011-08-07 00:32:19 +0200
commit6c4e9cae5223c88ad98cd184d4a7e6a019bdd586 (patch)
tree3c8e34592fb6a6dbd905b1930e5722569fa1febf /libavcodec/aacdec.c
parent4646ef87b1f55ab07a59e1f282d75c9b03747798 (diff)
parentb2700a5c7c073482c763dcb64692d7e0353b60b0 (diff)
Merge remote-tracking branch 'qatar/master'
* qatar/master: lavc: fix misspelling in comment aac: propagate error return values for AV_LOG_ERROR-triggering events Merged-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec/aacdec.c')
-rw-r--r--libavcodec/aacdec.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/libavcodec/aacdec.c b/libavcodec/aacdec.c
index 927d4314fa..7589bd7e7b 100644
--- a/libavcodec/aacdec.c
+++ b/libavcodec/aacdec.c
@@ -591,7 +591,9 @@ static av_cold int aac_decode_init(AVCodecContext *avctx)
ac->m4ac.chan_config = i;
if (ac->m4ac.chan_config) {
- set_default_channel_config(avctx, new_che_pos, ac->m4ac.chan_config);
+ if (set_default_channel_config(avctx, new_che_pos, ac->m4ac.chan_config) < 0 &&
+ avctx->error_recognition >= FF_ER_EXPLODE)
+ return AVERROR_INVALIDDATA;
output_configure(ac, ac->che_pos, new_che_pos, ac->m4ac.chan_config, OC_GLOBAL_HDR);
}
}