[FFmpeg-devel] [PATCH 3/4] aac: define a new profile for USAC
Lynne
dev at lynne.ee
Wed Jun 5 16:08:48 EEST 2024
On 05/06/2024 07:33, Andreas Rheinhardt wrote:
> Lynne via ffmpeg-devel:
>> This allows users to determine whether a stream is USAC or not.
>> ---
>> libavcodec/aac/aacdec_usac.c | 4 ++++
>> libavcodec/avcodec.h | 1 +
>> libavcodec/defs.h | 1 +
>> libavcodec/profiles.c | 1 +
>> libavcodec/profiles.h | 1 +
>> 5 files changed, 8 insertions(+)
>>
>> diff --git a/libavcodec/aac/aacdec_usac.c b/libavcodec/aac/aacdec_usac.c
>> index 7b36b49d63..5c3bb8d4ac 100644
>> --- a/libavcodec/aac/aacdec_usac.c
>> +++ b/libavcodec/aac/aacdec_usac.c
>> @@ -494,6 +494,8 @@ int ff_aac_usac_config_decode(AACDecContext *ac, AVCodecContext *avctx,
>> }
>> }
>>
>> + ac->avctx->profile = AV_PROFILE_AAC_USAC;
>> +
>> ret = ff_aac_usac_reset_state(ac, oc);
>> if (ret < 0)
>> return ret;
>> @@ -1533,6 +1535,8 @@ int ff_aac_usac_decode_frame(AVCodecContext *avctx, AACDecContext *ac,
>> ff_aac_output_configure(ac, ac->oc[1].layout_map, ac->oc[1].layout_map_tags,
>> ac->oc[1].status, 0);
>>
>> + ac->avctx->profile = AV_PROFILE_AAC_USAC;
>> +
>> indep_flag = get_bits1(gb);
>>
>> nb_ch_el = 0;
>> diff --git a/libavcodec/avcodec.h b/libavcodec/avcodec.h
>> index 2da63c87ea..257e04fe2d 100644
>> --- a/libavcodec/avcodec.h
>> +++ b/libavcodec/avcodec.h
>> @@ -1652,6 +1652,7 @@ typedef struct AVCodecContext {
>> #define FF_PROFILE_AAC_HE_V2 28
>> #define FF_PROFILE_AAC_LD 22
>> #define FF_PROFILE_AAC_ELD 38
>> +#define FF_PROFILE_AAC_USAC 41
>
> Don't add new deprecated defines.
Didn't notice. Removed locally.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: OpenPGP_0xA2FEA5F03F034464.asc
Type: application/pgp-keys
Size: 624 bytes
Desc: OpenPGP public key
URL: <https://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20240605/a27c63c7/attachment.key>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: OpenPGP_signature.asc
Type: application/pgp-signature
Size: 236 bytes
Desc: OpenPGP digital signature
URL: <https://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20240605/a27c63c7/attachment.sig>
More information about the ffmpeg-devel
mailing list