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

libavformat AVIOContext API example. More...

#include <libavcodec/avcodec.h>
#include <libavformat/avformat.h>
#include <libavformat/avio.h>
#include <libavutil/file.h>

Go to the source code of this file.

Data Structures

struct  buffer_data
 

Functions

static int read_packet (void *opaque, uint8_t *buf, int buf_size)
 
int main (int argc, char *argv[])
 

Detailed Description

libavformat AVIOContext API example.

Make libavformat demuxer access media content through a custom AVIOContext read callback.

Definition in file avio_reading.c.

Function Documentation

static int read_packet ( void opaque,
uint8_t buf,
int  buf_size 
)
static
Examples:
avio_reading.c.

Definition at line 42 of file avio_reading.c.

Referenced by avio_alloc_context(), ffio_init_context(), and main().

int main ( int  argc,
char *  argv[] 
)
Examples:
avio_reading.c.

Definition at line 57 of file avio_reading.c.