FFmpeg
Loading...
Searching...
No Matches
demux_probe.c File Reference
#include <stdio.h>
#include "libavutil/error.h"
#include "libavutil/log.h"
#include "libavutil/pixfmt.h"
#include "libavformat/avformat.h"
#include "libavformat/demux.h"

Go to the source code of this file.

Functions

static int read_header (AVFormatContext *s)
 
static int read_packet (AVFormatContext *s, AVPacket *pkt)
 
int main (void)
 

Variables

static int packets_read
 
static int corrupt_after
 
static int corrupt_duration
 
static const FFInputFormat test_demuxer
 

Function Documentation

◆ read_header()

static int read_header ( AVFormatContext * s)
static

Definition at line 31 of file demux_probe.c.

◆ read_packet()

static int read_packet ( AVFormatContext * s,
AVPacket * pkt )
static

Definition at line 46 of file demux_probe.c.

◆ main()

int main ( void )

Definition at line 76 of file demux_probe.c.

Variable Documentation

◆ packets_read

int packets_read
static

Definition at line 27 of file demux_probe.c.

Referenced by main(), and read_packet().

◆ corrupt_after

int corrupt_after
static

Definition at line 28 of file demux_probe.c.

Referenced by main(), and read_packet().

◆ corrupt_duration

int corrupt_duration
static

Definition at line 29 of file demux_probe.c.

Referenced by main(), and read_packet().

◆ test_demuxer

const FFInputFormat test_demuxer
static
Initial value:
= {
.p.name = "test",
.p.flags = AVFMT_NOFILE,
.read_header = read_header,
.read_packet = read_packet,
}
#define AVFMT_NOFILE
Demuxer will use avio_open, no opened file should be provided by the caller.
Definition avformat.h:490
static int read_packet(void *opaque, uint8_t *buf, int buf_size)
static int read_header(FFV1Context *f, RangeCoder *c)
Definition ffv1dec.c:580

Definition at line 69 of file demux_probe.c.

Referenced by main().