FFmpeg
Macros | Functions
flac_picture.h File Reference
#include "avformat.h"

Go to the source code of this file.

Macros

#define RETURN_ERROR(code)   do { ret = (code); goto fail; } while (0)
 

Functions

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

Macro Definition Documentation

◆ RETURN_ERROR

#define RETURN_ERROR (   code)    do { ret = (code); goto fail; } while (0)

Definition at line 27 of file flac_picture.h.

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 32 of file flac_picture.c.

Referenced by flac_read_header(), and vorbis_parse_single_comment().