SAUCE header parser.
More...
#include "libavutil/intreadwrite.h"
#include "libavutil/dict.h"
#include "avformat.h"
#include "sauce.h"
|
| #define | GET_SAUCE_META(name, size) |
| |
§ GET_SAUCE_META
| #define GET_SAUCE_META |
( |
|
name, |
|
|
|
size |
|
) |
| |
Value:if (
avio_read(pb, buf, size) == size && buf[0]) { \
buf[size] = 0; \
av_dict_set(&avctx->metadata, name, buf, 0); \
}
int avio_read(AVIOContext *s, unsigned char *buf, int size)
Read size bytes from AVIOContext into buf.
Definition: aviobuf.c:648
§ ff_sauce_read()
| int ff_sauce_read |
( |
AVFormatContext * |
avctx, |
|
|
uint64_t * |
fsize, |
|
|
int * |
got_width, |
|
|
int |
get_height |
|
) |
| |
- Parameters
-
| 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 |