FFmpeg
Data Structures | Macros | Functions | Variables
sapdec.c File Reference
#include "avformat.h"
#include "demux.h"
#include "libavutil/avstring.h"
#include "libavutil/intreadwrite.h"
#include "network.h"
#include "os_support.h"
#include "internal.h"
#include "avio_internal.h"
#include "url.h"
#include "rtpdec.h"

Go to the source code of this file.

Data Structures

struct  SAPState
 

Macros

#define MIME   "application/sdp"
 

Functions

static int sap_probe (const AVProbeData *p)
 
static int sap_read_close (AVFormatContext *s)
 
static int sap_read_header (AVFormatContext *s)
 
static int sap_fetch_packet (AVFormatContext *s, AVPacket *pkt)
 

Variables

const FFInputFormat ff_sap_demuxer
 

Macro Definition Documentation

◆ MIME

#define MIME   "application/sdp"

Function Documentation

◆ sap_probe()

static int sap_probe ( const AVProbeData p)
static

Definition at line 45 of file sapdec.c.

◆ sap_read_close()

static int sap_read_close ( AVFormatContext s)
static

Definition at line 52 of file sapdec.c.

Referenced by sap_read_header().

◆ sap_read_header()

static int sap_read_header ( AVFormatContext s)
static

Definition at line 63 of file sapdec.c.

◆ sap_fetch_packet()

static int sap_fetch_packet ( AVFormatContext s,
AVPacket pkt 
)
static

Definition at line 192 of file sapdec.c.

Variable Documentation

◆ ff_sap_demuxer

const FFInputFormat ff_sap_demuxer
Initial value:
= {
.p.name = "sap",
.p.long_name = NULL_IF_CONFIG_SMALL("SAP input"),
.p.flags = AVFMT_NOFILE,
.priv_data_size = sizeof(struct SAPState),
.read_header = sap_read_header,
.read_packet = sap_fetch_packet,
.read_close = sap_read_close,
}

Definition at line 236 of file sapdec.c.

sap_read_header
static int sap_read_header(AVFormatContext *s)
Definition: sapdec.c:63
SAPState
Definition: sapdec.c:36
sap_read_close
static int sap_read_close(AVFormatContext *s)
Definition: sapdec.c:52
NULL_IF_CONFIG_SMALL
#define NULL_IF_CONFIG_SMALL(x)
Return NULL if CONFIG_SMALL is true, otherwise the argument without modification.
Definition: internal.h:106
AVFMT_NOFILE
#define AVFMT_NOFILE
Demuxer will use avio_open, no opened file should be provided by the caller.
Definition: avformat.h:468
sap_probe
static int sap_probe(const AVProbeData *p)
Definition: sapdec.c:45
sap_fetch_packet
static int sap_fetch_packet(AVFormatContext *s, AVPacket *pkt)
Definition: sapdec.c:192
read_probe
static int read_probe(const AVProbeData *p)
Definition: cdg.c:30