FFmpeg  4.0
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

◆ read_packet()

static int read_packet ( void opaque,
uint8_t buf,
int  buf_size 
)
static

◆ main()

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

Definition at line 59 of file avio_reading.c.