libavcodec/xiph.c File Reference

#include "libavutil/intreadwrite.h"
#include "xiph.h"

Go to the source code of this file.

Functions

int ff_split_xiph_headers (uint8_t *extradata, int extradata_size, int first_header_size, uint8_t *header_start[3], int header_len[3])
 Splits a single extradata buffer into the three headers that most Xiph codecs use.


Function Documentation

int ff_split_xiph_headers ( uint8_t *  extradata,
int  extradata_size,
int  first_header_size,
uint8_t *  header_start[3],
int  header_len[3] 
)

Splits a single extradata buffer into the three headers that most Xiph codecs use.

(e.g. Theora and Vorbis) Works both with Matroska's packing and lavc's packing.

Parameters:
[in] extradata The single chunk that combines all three headers
[in] extradata_size The size of the extradata buffer
[in] first_header_size The size of the first header, used to differentiate between the Matroska packing and lavc packing.
[out] header_start Pointers to the start of the three separate headers.
[out] header_len The sizes of each of the three headers.
Returns:
On error a negative value is returned, on success zero.

Definition at line 24 of file xiph.c.

Referenced by ogg_write_header(), put_xiph_codecpriv(), and vorbis_decode_init().


Generated on Fri Oct 26 02:36:54 2012 for FFmpeg by  doxygen 1.5.8