FFmpeg
Data Structures | Functions | Variables
swfdec.c File Reference
#include "config.h"
#include "libavutil/avassert.h"
#include "libavutil/channel_layout.h"
#include "libavutil/imgutils.h"
#include "libavutil/internal.h"
#include "libavutil/intreadwrite.h"
#include "libavutil/mem.h"
#include "libavcodec/get_bits.h"
#include "demux.h"
#include "swf.h"
#include "flv.h"

Go to the source code of this file.

Data Structures

struct  SWFDecContext
 

Functions

static int get_swf_tag (AVIOContext *pb, int *len_ptr)
 
static int swf_probe (const AVProbeData *p)
 
static int swf_read_header (AVFormatContext *s)
 
static AVStreamcreate_new_audio_stream (AVFormatContext *s, int id, int info)
 
static int swf_read_packet (AVFormatContext *s, AVPacket *pkt)
 

Variables

static const AVCodecTag swf_audio_codec_tags []
 
const FFInputFormat ff_swf_demuxer
 

Function Documentation

◆ get_swf_tag()

static int get_swf_tag ( AVIOContext pb,
int *  len_ptr 
)
static

Definition at line 61 of file swfdec.c.

Referenced by swf_read_packet().

◆ swf_probe()

static int swf_probe ( const AVProbeData p)
static

Definition at line 79 of file swfdec.c.

◆ swf_read_header()

static int swf_read_header ( AVFormatContext s)
static

Definition at line 150 of file swfdec.c.

◆ create_new_audio_stream()

static AVStream* create_new_audio_stream ( AVFormatContext s,
int  id,
int  info 
)
static

Definition at line 193 of file swfdec.c.

Referenced by swf_read_packet().

◆ swf_read_packet()

static int swf_read_packet ( AVFormatContext s,
AVPacket pkt 
)
static

Definition at line 213 of file swfdec.c.

Variable Documentation

◆ swf_audio_codec_tags

const AVCodecTag swf_audio_codec_tags[]
static
Initial value:

Definition at line 52 of file swfdec.c.

Referenced by create_new_audio_stream().

◆ ff_swf_demuxer

const FFInputFormat ff_swf_demuxer
Initial value:
= {
.p.name = "swf",
.p.long_name = NULL_IF_CONFIG_SMALL("SWF (ShockWave Flash)"),
.priv_data_size = sizeof(SWFDecContext),
}

Definition at line 566 of file swfdec.c.

AV_CODEC_ID_PCM_S16LE
@ AV_CODEC_ID_PCM_S16LE
Definition: codec_id.h:334
SWFDecContext
Definition: swfdec.c:40
swf_read_header
static int swf_read_header(AVFormatContext *s)
Definition: swfdec.c:150
AV_CODEC_ID_MP3
@ AV_CODEC_ID_MP3
preferred ID for decoding MPEG audio layer 1, 2 or 3
Definition: codec_id.h:448
read_packet
static int read_packet(void *opaque, uint8_t *buf, int buf_size)
Definition: avio_read_callback.c:42
swf_read_packet
static int swf_read_packet(AVFormatContext *s, AVPacket *pkt)
Definition: swfdec.c:213
read_header
static int read_header(FFV1Context *f)
Definition: ffv1dec.c:540
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:94
AV_CODEC_ID_ADPCM_SWF
@ AV_CODEC_ID_ADPCM_SWF
Definition: codec_id.h:386
AV_CODEC_ID_NONE
@ AV_CODEC_ID_NONE
Definition: codec_id.h:50
swf_probe
static int swf_probe(const AVProbeData *p)
Definition: swfdec.c:79
read_probe
static int read_probe(const AVProbeData *p)
Definition: cdg.c:30
AV_CODEC_ID_NELLYMOSER
@ AV_CODEC_ID_NELLYMOSER
Definition: codec_id.h:480