diff options
author | Alex Converse <alex.converse@gmail.com> | 2017-02-09 08:22:20 -0800 |
---|---|---|
committer | Alex Converse <alex.converse@gmail.com> | 2017-02-13 09:31:13 -0800 |
commit | 3f1a38c9194d0d1e47469504000997b7bfbcf3b0 (patch) | |
tree | 5ed618159b038291dc6532994dd03334f66e80b1 /libavcodec/mpeg4audio.h | |
parent | 8a3fea14ae94f715fc508098aa7d8ad89ee80054 (diff) | |
download | ffmpeg-3f1a38c9194d0d1e47469504000997b7bfbcf3b0.tar.gz |
aac_latm: Allow unaligned AudioSpecificConfig
Fixes ticket 4730
Diffstat (limited to 'libavcodec/mpeg4audio.h')
-rw-r--r-- | libavcodec/mpeg4audio.h | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/libavcodec/mpeg4audio.h b/libavcodec/mpeg4audio.h index 8239081747..8fd32f96b3 100644 --- a/libavcodec/mpeg4audio.h +++ b/libavcodec/mpeg4audio.h @@ -45,7 +45,17 @@ extern av_export const int avpriv_mpeg4audio_sample_rates[16]; extern const uint8_t ff_mpeg4audio_channels[8]; /** - * Parse MPEG-4 systems extradata to retrieve audio configuration. + * Parse MPEG-4 systems extradata from a potentially unaligned GetBitContext to retrieve audio configuration. + * @param[in] c MPEG4AudioConfig structure to fill. + * @param[in] gb Extradata from container. + * @param[in] sync_extension look for a sync extension after config if true. + * @return On error -1 is returned, on success AudioSpecificConfig bit index in extradata. + */ +int ff_mpeg4audio_get_config_gb(MPEG4AudioConfig *c, GetBitContext *gb, + int sync_extension); + +/** + * Parse MPEG-4 systems extradata from a raw buffer to retrieve audio configuration. * @param[in] c MPEG4AudioConfig structure to fill. * @param[in] buf Extradata from container. * @param[in] bit_size Extradata size in bits. |