libavformat/sauce.c File Reference

SAUCE header parser. More...

#include "libavutil/intreadwrite.h"
#include "libavutil/dict.h"
#include "avformat.h"
#include "sauce.h"

Go to the source code of this file.


#define GET_SAUCE_META(name, size)


int ff_sauce_read (AVFormatContext *avctx, uint64_t *fsize, int *got_width, int get_height)

Detailed Description

SAUCE header parser.

Definition in file sauce.c.

Define Documentation

#define GET_SAUCE_META ( name,
size   ) 


if (avio_read(pb, buf, size) == size && buf[0]) { \
        buf[size] = 0; \
        av_dict_set(&avctx->metadata, name, buf, 0); \

Referenced by ff_sauce_read().

Function Documentation

int ff_sauce_read ( AVFormatContext avctx,
uint64_t *  fsize,
int *  got_width,
int  get_height 

avctx AVFormatContext
[out] fsize return length of file, less SAUCE header
[out] got_width set to non-zero if SAUCE header reported height
get_height Tell SAUCE header to parse height

Definition at line 32 of file sauce.c.

Referenced by read_header().

Generated on Fri Oct 26 02:38:21 2012 for FFmpeg by  doxygen 1.5.8