History

mpeg4audio: rename AOT_USAC_NOSBR to AOT_USAC

The issue is that AOT 45 isn't defined anywhere, and looking at the git blame, it seems to have sprung up through a reordering of the enum, and adding a hole. The spec does not define an explicit AOT for SBR and no SBR, and only uses AOT 42 (previously AOT_USAC_NOSBR), so just rename AOT_USAC to it and replace its use everywhere.

Lynne committed 2 years ago

Commit 8a2fe8a1 parent 840f2bc2 files · +3 −7Browse files

Showing the changes to libavcodec/aac (1 of 2 files). Show all

Unified · Split

libavcodec/aac/aacdec.c+2−5
@@ -1046,7 +1046,6 @@ static int decode_audio_specific_config_gb(AACDecContext *ac, · 1045 unmodified lines
10461046 return ret;
10471047 break;
10481048 #if CONFIG_AAC_DECODER
1049− case AOT_USAC_NOSBR: /* fallthrough */
10501049 case AOT_USAC:
10511050 if ((ret = ff_aac_usac_config_decode(ac, avctx, gb,
10521051 oc, m4ac->chan_config)) < 0)
@@ -1571,8 +1570,7 @@ int ff_aac_decode_tns(AACDecContext *ac, TemporalNoiseShaping *tns, · 518 unmodified lines
15711570 GetBitContext *gb, const IndividualChannelStream *ics)
15721571 {
15731572 int tns_max_order = INT32_MAX;
1574− const int is_usac = ac->oc[1].m4ac.object_type == AOT_USAC ||
1575− ac->oc[1].m4ac.object_type == AOT_USAC_NOSBR;
1573+ const int is_usac = ac->oc[1].m4ac.object_type == AOT_USAC;
15761574 int w, filt, i, coef_len, coef_res, coef_compress;
15771575 const int is8 = ics->window_sequence[0] == EIGHT_SHORT_SEQUENCE;
15781576
@@ -2421,8 +2419,7 @@ static int aac_decode_frame_int(AVCodecContext *avctx, AVFrame *frame, · 842 unmodified lines
24212419
24222420 ac->tags_mapped = 0;
24232421
2424− if ((ac->oc[1].m4ac.object_type == AOT_USAC) ||
2425− (ac->oc[1].m4ac.object_type == AOT_USAC_NOSBR)) {
2422+ if (ac->oc[1].m4ac.object_type == AOT_USAC) {
24262423 if (ac->is_fixed) {
24272424 avpriv_report_missing_feature(ac->avctx,
24282425 "AAC USAC fixed-point decoding");

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t