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>
pull/2/head
Michael Niedermayer 13 years ago
commit 6c4e9cae52
  1. 4
      libavcodec/aacdec.c
  2. 2
      libavcodec/avcodec.h

@ -591,7 +591,9 @@ static av_cold int aac_decode_init(AVCodecContext *avctx)
ac->m4ac.chan_config = i; ac->m4ac.chan_config = i;
if (ac->m4ac.chan_config) { 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); output_configure(ac, ac->che_pos, new_che_pos, ac->m4ac.chan_config, OC_GLOBAL_HDR);
} }
} }

@ -1487,7 +1487,7 @@ typedef struct AVCodecContext {
float b_quant_offset; float b_quant_offset;
/** /**
* Error recognization; higher values will detect more errors but may * Error recognition; higher values will detect more errors but may
* misdetect some more or less valid parts as errors. * misdetect some more or less valid parts as errors.
* - encoding: unused * - encoding: unused
* - decoding: Set by user. * - decoding: Set by user.

Loading…
Cancel
Save