FFmpeg
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Functions
adts_parser.c File Reference
#include "config.h"
#include <stddef.h>
#include <stdint.h>
#include "adts_header.h"
#include "adts_parser.h"

Go to the source code of this file.

Functions

int av_adts_header_parse (const uint8_t *buf, uint32_t *samples, uint8_t *frames)
 Extract the number of samples and frames from AAC data. More...
 

Function Documentation

int av_adts_header_parse ( const uint8_t buf,
uint32_t *  samples,
uint8_t frames 
)

Extract the number of samples and frames from AAC data.

Parameters
[in]bufpointer to AAC data buffer
[out]samplesPointer to where number of samples is written
[out]framesPointer to where number of frames is written
Returns
Returns 0 on success, error code on failure.

Definition at line 27 of file adts_parser.c.

Referenced by spdif_get_offset_and_codec(), and spdif_header_aac().