FFmpeg
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions
decode_audio.c File Reference

audio decoding with libavcodec API example More...

#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <libavutil/frame.h>
#include <libavutil/mem.h>
#include <libavcodec/avcodec.h>

Go to the source code of this file.

Macros

#define AUDIO_INBUF_SIZE   20480
 
#define AUDIO_REFILL_THRESH   4096
 

Functions

static void decode (AVCodecContext *dec_ctx, AVPacket *pkt, AVFrame *frame, FILE *outfile)
 
int main (int argc, char **argv)
 

Detailed Description

audio decoding with libavcodec API example

Definition in file decode_audio.c.

Macro Definition Documentation

#define AUDIO_INBUF_SIZE   20480
Examples:
decode_audio.c.

Definition at line 39 of file decode_audio.c.

Referenced by main().

#define AUDIO_REFILL_THRESH   4096
Examples:
decode_audio.c.

Definition at line 40 of file decode_audio.c.

Referenced by main().

Function Documentation

static void decode ( AVCodecContext dec_ctx,
AVPacket pkt,
AVFrame frame,
FILE *  outfile 
)
static
Examples:
decode_audio.c, and qsvdec.c.

Definition at line 42 of file decode_audio.c.

Referenced by dxva2_init_pool(), get_format(), main(), and show_formats_devices().

int main ( int  argc,
char **  argv 
)
Examples:
decode_audio.c.

Definition at line 76 of file decode_audio.c.