FFmpeg
Data Structures | Functions
avio_reading.c File Reference
#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

◆ read_packet()

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(), main(), and read_part_of_packet().

◆ main()

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

Definition at line 59 of file avio_reading.c.