FFmpeg
Loading...
Searching...
No Matches
flac_picture.h File Reference
#include "avformat.h"

Go to the source code of this file.

Macros

#define RETURN_ERROR(code)
 

Functions

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

Macro Definition Documentation

◆ RETURN_ERROR

#define RETURN_ERROR ( code)
Value:
do { ret = (code); goto fail; } while (0)
#define fail
Definition test.h:479
const uint8_t * code
Definition spdifenc.c:433

Definition at line 27 of file flac_picture.h.

Referenced by ff_flac_parse_picture(), and flac_read_header().

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

Referenced by flac_read_header(), and vorbis_parse_single_comment().