aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/aac_parser.c
diff options
context:
space:
mode:
authorJames Almer <jamrial@gmail.com>2022-10-22 16:30:52 -0300
committerJames Almer <jamrial@gmail.com>2022-10-26 10:18:33 -0300
commitb5abf6fdfc0d1bd8b009f8877589f1bc7eec3e9c (patch)
treef0ca3804115abb379c3ebe27f093d567f38f24d3 /libavcodec/aac_parser.c
parent676e7d7f9b5dc76d5124cc99e3a3fa6c823decc3 (diff)
downloadffmpeg-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.c7
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;
}