FFmpeg
Loading...
Searching...
No Matches
mpegaudiodecheader.c File Reference
#include <inttypes.h>
#include <stdint.h>
#include <stdio.h>
#include <string.h>
#include "libavutil/file.h"
#include "libavutil/mem.h"
#include "libavutil/intreadwrite.h"
#include "libavcodec/mpegaudiodecheader.h"

Go to the source code of this file.

Macros

#define PADDING_BIT   (1U << 9)
 Walks the MPEG audio frames of a file, checks that every frame header encodes back to its original bits, and prints each distinct header.
 

Functions

static size_t id3v2_size (const uint8_t *buf, size_t size)
 
static void print_header (size_t offset, unsigned frames, uint32_t bits, const MPADecodeHeader2 *header)
 
int main (int argc, char *argv[])
 

Macro Definition Documentation

◆ PADDING_BIT

#define PADDING_BIT   (1U << 9)

Walks the MPEG audio frames of a file, checks that every frame header encodes back to its original bits, and prints each distinct header.

Definition at line 35 of file mpegaudiodecheader.c.

Referenced by main().

Function Documentation

◆ id3v2_size()

static size_t id3v2_size ( const uint8_t * buf,
size_t size )
static

Definition at line 37 of file mpegaudiodecheader.c.

Referenced by main().

◆ print_header()

static void print_header ( size_t offset,
unsigned frames,
uint32_t bits,
const MPADecodeHeader2 * header )
static

Definition at line 47 of file mpegaudiodecheader.c.

Referenced by main().

◆ main()

int main ( int argc,
char * argv[] )

Definition at line 59 of file mpegaudiodecheader.c.