FFmpeg
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Functions | Variables
oggparseogm.c File Reference
#include <stdlib.h>
#include "libavutil/avassert.h"
#include "libavutil/intreadwrite.h"
#include "libavcodec/get_bits.h"
#include "libavcodec/bytestream.h"
#include "avformat.h"
#include "internal.h"
#include "oggdec.h"
#include "riff.h"

Go to the source code of this file.

Functions

static int ogm_header (AVFormatContext *s, int idx)
 Copyright (C) 2005 Michael Ahlberg, Måns Rullgård.
 
static int ogm_dshow_header (AVFormatContext *s, int idx)
 
static int ogm_packet (AVFormatContext *s, int idx)
 

Variables

struct ogg_codec ff_ogm_video_codec
 
struct ogg_codec ff_ogm_audio_codec
 
struct ogg_codec ff_ogm_text_codec
 
struct ogg_codec ff_ogm_old_codec
 

Function Documentation

static int ogm_header ( AVFormatContext s,
int  idx 
)
static

Copyright (C) 2005 Michael Ahlberg, Måns Rullgård.

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

Definition at line 36 of file oggparseogm.c.

static int ogm_dshow_header ( AVFormatContext s,
int  idx 
)
static

Definition at line 116 of file oggparseogm.c.

static int ogm_packet ( AVFormatContext s,
int  idx 
)
static

Definition at line 149 of file oggparseogm.c.

Variable Documentation

struct ogg_codec ff_ogm_video_codec
Initial value:
= {
.magic = "\001video",
.magicsize = 6,
.header = ogm_header,
.packet = ogm_packet,
.granule_is_start = 1,
.nb_header = 2,
}

Definition at line 169 of file oggparseogm.c.

Referenced by ogg_read_timestamp().

struct ogg_codec ff_ogm_audio_codec
Initial value:
= {
.magic = "\001audio",
.magicsize = 6,
.header = ogm_header,
.packet = ogm_packet,
.granule_is_start = 1,
.nb_header = 2,
}

Definition at line 178 of file oggparseogm.c.

struct ogg_codec ff_ogm_text_codec
Initial value:
= {
.magic = "\001text",
.magicsize = 5,
.header = ogm_header,
.packet = ogm_packet,
.granule_is_start = 1,
.nb_header = 2,
}

Definition at line 187 of file oggparseogm.c.

struct ogg_codec ff_ogm_old_codec
Initial value:
= {
.magic = "\001Direct Show Samples embedded in Ogg",
.magicsize = 35,
.header = ogm_dshow_header,
.packet = ogm_packet,
.granule_is_start = 1,
.nb_header = 1,
}

Definition at line 196 of file oggparseogm.c.