MCPcopy Create free account
hub / github.com/FFmpeg/FFmpeg / aac_sync

Function aac_sync

libavcodec/aac_parser.c:30–44  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

28#include "libavutil/intreadwrite.h"
29
30static int aac_sync(uint64_t state, int *need_next_header, int *new_frame_start)
31{
32 uint8_t tmp[8 + AV_INPUT_BUFFER_PADDING_SIZE];
33 AACADTSHeaderInfo hdr;
34 int size;
35
36 AV_WB64(tmp, state);
37
38 size = ff_adts_header_parse_buf(tmp + 8 - AV_AAC_ADTS_HEADER_SIZE, &hdr);
39 if (size < 0)
40 return 0;
41 *need_next_header = 0;
42 *new_frame_start = 1;
43 return size;
44}
45
46static av_cold int aac_parse_init(AVCodecParserContext *s1)
47{

Callers

nothing calls this directly

Calls 1

ff_adts_header_parse_bufFunction · 0.85

Tested by

no test coverage detected