libavformat/flvdec.c File Reference

#include "libavutil/avstring.h"
#include "libavutil/dict.h"
#include "libavutil/intfloat.h"
#include "libavutil/mathematics.h"
#include "libavcodec/bytestream.h"
#include "libavcodec/mpeg4audio.h"
#include "avformat.h"
#include "internal.h"
#include "avio_internal.h"
#include "flv.h"

Go to the source code of this file.

Data Structures

struct  FLVContext

Defines

#define VALIDATE_INDEX_TS_THRESH   2500

Functions

static int flv_probe (AVProbeData *p)
static void flv_set_audio_codec (AVFormatContext *s, AVStream *astream, AVCodecContext *acodec, int flv_codecid)
static int flv_set_video_codec (AVFormatContext *s, AVStream *vstream, int flv_codecid)
static int amf_get_string (AVIOContext *ioc, char *buffer, int buffsize)
static int parse_keyframes_index (AVFormatContext *s, AVIOContext *ioc, AVStream *vstream, int64_t max_pos)
static int amf_parse_object (AVFormatContext *s, AVStream *astream, AVStream *vstream, const char *key, int64_t max_pos, int depth)
static int flv_read_metabody (AVFormatContext *s, int64_t next_pos)
static AVStreamcreate_stream (AVFormatContext *s, int stream_type)
static int flv_read_header (AVFormatContext *s)
static int flv_read_close (AVFormatContext *s)
static int flv_get_extradata (AVFormatContext *s, AVStream *st, int size)
static int flv_queue_extradata (FLVContext *flv, AVIOContext *pb, int stream, int size)
static void clear_index_entries (AVFormatContext *s, int64_t pos)
static int flv_read_packet (AVFormatContext *s, AVPacket *pkt)
static int flv_read_seek (AVFormatContext *s, int stream_index, int64_t ts, int flags)

Variables

AVInputFormat ff_flv_demuxer


Define Documentation

#define VALIDATE_INDEX_TS_THRESH   2500

Definition at line 38 of file flvdec.c.

Referenced by flv_read_packet().


Function Documentation

static int amf_get_string ( AVIOContext ioc,
char *  buffer,
int  buffsize 
) [static]

Definition at line 133 of file flvdec.c.

Referenced by amf_parse_object(), flv_read_metabody(), and parse_keyframes_index().

static int amf_parse_object ( AVFormatContext s,
AVStream astream,
AVStream vstream,
const char *  key,
int64_t  max_pos,
int  depth 
) [static]

Definition at line 225 of file flvdec.c.

Referenced by flv_read_metabody().

static void clear_index_entries ( AVFormatContext s,
int64_t  pos 
) [static]

Definition at line 453 of file flvdec.c.

Referenced by flv_read_packet().

static AVStream* create_stream ( AVFormatContext s,
int  stream_type 
) [static]

Definition at line 365 of file flvdec.c.

Referenced by flv_read_header(), and flv_read_packet().

static int flv_get_extradata ( AVFormatContext s,
AVStream st,
int  size 
) [static]

Definition at line 430 of file flvdec.c.

Referenced by flv_read_packet().

static int flv_probe ( AVProbeData p  )  [static]

Definition at line 54 of file flvdec.c.

static int flv_queue_extradata ( FLVContext flv,
AVIOContext pb,
int  stream,
int  size 
) [static]

Definition at line 441 of file flvdec.c.

Referenced by flv_read_packet().

static int flv_read_close ( AVFormatContext s  )  [static]

Definition at line 421 of file flvdec.c.

static int flv_read_header ( AVFormatContext s  )  [static]

Definition at line 387 of file flvdec.c.

static int flv_read_metabody ( AVFormatContext s,
int64_t  next_pos 
) [static]

Definition at line 335 of file flvdec.c.

Referenced by flv_read_packet().

static int flv_read_packet ( AVFormatContext s,
AVPacket pkt 
) [static]

Definition at line 469 of file flvdec.c.

static int flv_read_seek ( AVFormatContext s,
int  stream_index,
int64_t  ts,
int  flags 
) [static]

Definition at line 688 of file flvdec.c.

static void flv_set_audio_codec ( AVFormatContext s,
AVStream astream,
AVCodecContext acodec,
int  flv_codecid 
) [static]

Definition at line 65 of file flvdec.c.

Referenced by flv_read_packet().

static int flv_set_video_codec ( AVFormatContext s,
AVStream vstream,
int  flv_codecid 
) [static]

Definition at line 102 of file flvdec.c.

Referenced by flv_read_packet().

static int parse_keyframes_index ( AVFormatContext s,
AVIOContext ioc,
AVStream vstream,
int64_t  max_pos 
) [static]

Definition at line 147 of file flvdec.c.

Referenced by amf_parse_object().


Variable Documentation

Initial value:

 {
    .name           = "flv",
    .long_name      = NULL_IF_CONFIG_SMALL("FLV format"),
    .priv_data_size = sizeof(FLVContext),
    .read_probe     = flv_probe,
    .read_header    = flv_read_header,
    .read_packet    = flv_read_packet,
    .read_seek      = flv_read_seek,



    .read_close     = flv_read_close,
    .extensions     = "flv",
}

Definition at line 723 of file flvdec.c.


Generated on Fri Oct 26 02:47:56 2012 for FFmpeg by  doxygen 1.5.8