#include <stdio.h>
#include "libavutil/avassert.h"
#include "libavutil/intreadwrite.h"
#include "avio_internal.h"
#include "oggdec.h"
#include "avformat.h"
#include "internal.h"
#include "vorbiscomment.h"
Go to the source code of this file.
|
static int64_t | ogg_calc_pts (AVFormatContext *s, int idx, int64_t *dts) |
|
static int | ogg_new_stream (AVFormatContext *s, uint32_t serial) |
|
static int | ogg_restore (AVFormatContext *s) |
|
static void | free_stream (AVFormatContext *s, int i) |
|
static int | ogg_save (AVFormatContext *s) |
|
static int | ogg_reset (AVFormatContext *s) |
|
static const struct ogg_codec * | ogg_find_codec (uint8_t *buf, int size) |
|
static int | ogg_replace_stream (AVFormatContext *s, uint32_t serial, char *magic, int page_size, int probing) |
| Replace the current stream with a new one. More...
|
|
static int | data_packets_seen (const struct ogg *ogg) |
|
static int | buf_realloc (struct ogg_stream *os, int size) |
|
static int | ogg_read_page (AVFormatContext *s, int *sid, int probing) |
|
static int | ogg_packet (AVFormatContext *s, int *sid, int *dstart, int *dsize, int64_t *fpos) |
| find the next Ogg packet More...
|
|
static int | ogg_get_length (AVFormatContext *s) |
|
static int | ogg_read_close (AVFormatContext *s) |
|
static int | ogg_read_header (AVFormatContext *s) |
|
static void | ogg_validate_keyframe (AVFormatContext *s, int idx, int pstart, int psize) |
|
static int | ogg_read_packet (AVFormatContext *s, AVPacket *pkt) |
|
static int64_t | ogg_read_timestamp (AVFormatContext *s, int stream_index, int64_t *pos_arg, int64_t pos_limit) |
|
static int | ogg_read_seek (AVFormatContext *s, int stream_index, int64_t timestamp, int flags) |
|
static int | ogg_probe (const AVProbeData *p) |
|
◆ MAX_PAGE_SIZE
#define MAX_PAGE_SIZE 65307 |
◆ DECODER_BUFFER_SIZE
◆ ogg_calc_pts()
◆ ogg_new_stream()
◆ ogg_restore()
◆ free_stream()
◆ ogg_save()
◆ ogg_reset()
◆ ogg_find_codec()
◆ ogg_replace_stream()
Replace the current stream with a new one.
This is a typical webradio situation where a new audio stream spawn (identified with a new serial) and must replace the previous one (track switch).
Definition at line 209 of file oggdec.c.
Referenced by ogg_read_page().
◆ data_packets_seen()
static int data_packets_seen |
( |
const struct ogg * |
ogg | ) |
|
|
static |
◆ buf_realloc()
◆ ogg_read_page()
◆ ogg_packet()
◆ ogg_get_length()
◆ ogg_read_close()
◆ ogg_read_header()
◆ ogg_validate_keyframe()
◆ ogg_read_packet()
◆ ogg_read_timestamp()
static int64_t ogg_read_timestamp |
( |
AVFormatContext * |
s, |
|
|
int |
stream_index, |
|
|
int64_t * |
pos_arg, |
|
|
int64_t |
pos_limit |
|
) |
| |
|
static |
◆ ogg_read_seek()
◆ ogg_probe()
◆ ogg_codecs
◆ ff_ogg_demuxer
Initial value:= {
.name = "ogg",
.priv_data_size =
sizeof(
struct ogg),
.extensions = "ogg",
}
Definition at line 969 of file oggdec.c.
const struct ogg_codec ff_old_flac_codec
const struct ogg_codec ff_ogm_text_codec
const struct ogg_codec ff_ogm_audio_codec
const struct ogg_codec ff_vp8_codec
const struct ogg_codec ff_old_dirac_codec
static int ogg_read_header(AVFormatContext *s)
const struct ogg_codec ff_vorbis_codec
const struct ogg_codec ff_flac_codec
const struct ogg_codec ff_ogm_old_codec
static int ogg_read_seek(AVFormatContext *s, int stream_index, int64_t timestamp, int flags)
#define NULL_IF_CONFIG_SMALL(x)
Return NULL if CONFIG_SMALL is true, otherwise the argument without modification.
static int ogg_read_close(AVFormatContext *s)
const struct ogg_codec ff_ogm_video_codec
const struct ogg_codec ff_skeleton_codec
static int64_t ogg_read_timestamp(AVFormatContext *s, int stream_index, int64_t *pos_arg, int64_t pos_limit)
static int ogg_read_packet(AVFormatContext *s, AVPacket *pkt)
const struct ogg_codec ff_celt_codec
static int ogg_probe(const AVProbeData *p)
const struct ogg_codec ff_dirac_codec
const struct ogg_codec ff_speex_codec
const struct ogg_codec ff_theora_codec
const struct ogg_codec ff_opus_codec