diff --git a/libavcodec/aac.c b/libavcodec/aac.c index e10905eccf..9a3b3d7ba8 100644 --- a/libavcodec/aac.c +++ b/libavcodec/aac.c @@ -1598,13 +1598,13 @@ static int parse_adts_frame_header(AACContext * ac, GetBitContext * gb) { ac->m4ac.sample_rate = hdr_info.sample_rate; ac->m4ac.sampling_index = hdr_info.sampling_index; ac->m4ac.object_type = hdr_info.object_type; - if (hdr_info.num_aac_frames == 1) { - if (!hdr_info.crc_absent) - skip_bits(gb, 16); - } else { - ff_log_missing_feature(ac->avccontext, "More than one AAC RDB per ADTS frame is", 0); - return -1; - } + if (hdr_info.num_aac_frames == 1) { + if (!hdr_info.crc_absent) + skip_bits(gb, 16); + } else { + ff_log_missing_feature(ac->avccontext, "More than one AAC RDB per ADTS frame is", 0); + return -1; + } } return size; }