diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2013-03-08 14:07:36 +0100 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2013-03-08 14:21:40 +0100 |
commit | eab49f4fb53f6daf7f1de09555e2c7d3b2a0dbb0 (patch) | |
tree | 690f1938e5ffa621211e5007982edd14df075b46 /libavcodec/aacsbr.c | |
parent | 8978c743fb1d1f5a0d6dbdd83ff05817f8a41230 (diff) | |
download | ffmpeg-eab49f4fb53f6daf7f1de09555e2c7d3b2a0dbb0.tar.gz |
Revert "aacdec: Reconfigure output as needed, disable pop_output_configuration()"
This reverts commit 60dbf2eff92f8aa4683b6dcaba9e694890258ade.
This is not needed anymore, Ticket 1694 has been fixed differently
Diffstat (limited to 'libavcodec/aacsbr.c')
-rw-r--r-- | libavcodec/aacsbr.c | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/libavcodec/aacsbr.c b/libavcodec/aacsbr.c index 2dd4c5e44c..8cdf819e23 100644 --- a/libavcodec/aacsbr.c +++ b/libavcodec/aacsbr.c @@ -925,13 +925,11 @@ static void read_sbr_extension(AACContext *ac, SpectralBandReplication *sbr, { switch (bs_extension_id) { case EXTENSION_ID_PS: - if (ac->oc[1].m4ac.ps != 1) { - av_log(ac->avctx, AV_LOG_DEBUG, "Parametric Stereo was found in the bitstream.\n"); - ac->oc[1].m4ac.ps = 1; - ff_aac_output_configure(ac, ac->oc[1].layout_map, ac->oc[1].layout_map_tags, - ac->oc[1].status, 1); - } - av_assert0(ac->oc[1].m4ac.ps); + if (!ac->oc[1].m4ac.ps) { + av_log(ac->avctx, AV_LOG_ERROR, "Parametric Stereo signaled to be not-present but was found in the bitstream.\n"); + skip_bits_long(gb, *num_bits_left); // bs_fill_bits + *num_bits_left = 0; + } else { #if 1 *num_bits_left -= ff_ps_read_data(ac->avctx, gb, &sbr->ps, *num_bits_left); #else @@ -939,6 +937,7 @@ static void read_sbr_extension(AACContext *ac, SpectralBandReplication *sbr, skip_bits_long(gb, *num_bits_left); // bs_fill_bits *num_bits_left = 0; #endif + } break; default: // some files contain 0-padding |