FFmpeg
Macros | Functions
flac_picture.c File Reference
#include "libavutil/intreadwrite.h"
#include "libavcodec/bytestream.h"
#include "libavcodec/png.h"
#include "avformat.h"
#include "demux.h"
#include "flac_picture.h"
#include "id3v2.h"
#include "internal.h"

Go to the source code of this file.

Macros

#define MAX_TRUNC_PICTURE_SIZE   (500 * 1024 * 1024)
 

Functions

int ff_flac_parse_picture (AVFormatContext *s, uint8_t **bufp, int buf_size, int truncate_workaround)
 Parse a FLAC METADATA_BLOCK_PICTURE. More...
 

Macro Definition Documentation

◆ MAX_TRUNC_PICTURE_SIZE

#define MAX_TRUNC_PICTURE_SIZE   (500 * 1024 * 1024)

Definition at line 31 of file flac_picture.c.

Function Documentation

◆ ff_flac_parse_picture()

int ff_flac_parse_picture ( AVFormatContext s,
uint8_t **  buf,
int  buf_size,
int  truncate_workaround 
)

Parse a FLAC METADATA_BLOCK_PICTURE.

Parameters
sAVFormatContext for logging and the attached picture stream.
buf*buf points to the actual data which must be padded by AV_INPUT_BUFFER_PADDING_SIZE bytes not counted in buf_size. This function may take ownership of *buf and reset it.
buf_sizesize of *buf (excluding padding)
truncate_workaroundIf set, additional data may be read from s->pb if truncation has been detected.

Definition at line 33 of file flac_picture.c.

Referenced by flac_read_header(), and vorbis_parse_single_comment().