[FFmpeg-cvslog] aac: propagate error return values for AV_LOG_ERROR-triggering events
Dustin Brody
git at videolan.org
Sun Aug 7 00:44:23 CEST 2011
ffmpeg | branch: master | Dustin Brody <libav at parsoma.net> | Thu Aug 4 22:32:09 2011 -0400| [680b1852ab0326a0756abffa8b8ef8d6c5468ec9] | committer: Alex Converse
aac: propagate error return values for AV_LOG_ERROR-triggering events
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=680b1852ab0326a0756abffa8b8ef8d6c5468ec9
---
libavcodec/aacdec.c | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
diff --git a/libavcodec/aacdec.c b/libavcodec/aacdec.c
index 783bf99..5740d6c 100644
--- a/libavcodec/aacdec.c
+++ b/libavcodec/aacdec.c
@@ -589,7 +589,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);
}
}
More information about the ffmpeg-cvslog
mailing list