diff options
author | James Almer <jamrial@gmail.com> | 2022-10-22 16:30:52 -0300 |
---|---|---|
committer | James Almer <jamrial@gmail.com> | 2022-10-26 10:18:33 -0300 |
commit | b5abf6fdfc0d1bd8b009f8877589f1bc7eec3e9c (patch) | |
tree | f0ca3804115abb379c3ebe27f093d567f38f24d3 /libavcodec/aac_parser.c | |
parent | 676e7d7f9b5dc76d5124cc99e3a3fa6c823decc3 (diff) | |
download | ffmpeg-b5abf6fdfc0d1bd8b009f8877589f1bc7eec3e9c.tar.gz |
avcodec/aac_ac3_parser: don't fill stream info in the sync function
Have it only find frame boundaries. The stream props will then be filled once
we have an assembled frame.
Signed-off-by: James Almer <jamrial@gmail.com>
Diffstat (limited to 'libavcodec/aac_parser.c')
-rw-r--r-- | libavcodec/aac_parser.c | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/libavcodec/aac_parser.c b/libavcodec/aac_parser.c index f3baf7cde3..f295dfccdd 100644 --- a/libavcodec/aac_parser.c +++ b/libavcodec/aac_parser.c @@ -27,8 +27,7 @@ #include "get_bits.h" #include "mpeg4audio.h" -static int aac_sync(uint64_t state, AACAC3ParseContext *hdr_info, - int *need_next_header, int *new_frame_start) +static int aac_sync(uint64_t state, int *need_next_header, int *new_frame_start) { GetBitContext bits; AACADTSHeaderInfo hdr; @@ -46,10 +45,6 @@ static int aac_sync(uint64_t state, AACAC3ParseContext *hdr_info, return 0; *need_next_header = 0; *new_frame_start = 1; - hdr_info->sample_rate = hdr.sample_rate; - hdr_info->channels = ff_mpeg4audio_channels[hdr.chan_config]; - hdr_info->samples = hdr.samples; - hdr_info->bit_rate = hdr.bit_rate; return size; } |