42 #define OFFSET(x) offsetof(GMEContext, x)
43 #define A AV_OPT_FLAG_AUDIO_PARAM
44 #define D AV_OPT_FLAG_DECODING_PARAM
46 {
"track_index",
"set track that should be played",
OFFSET(track_index),
AV_OPT_TYPE_INT, {.i64 = 0}, 0, INT_MAX,
A|
D},
48 {
"max_size",
"set max file size supported (in bytes)",
OFFSET(max_size),
AV_OPT_TYPE_INT64, {.i64 = 50 * 1024 * 1024}, 0, SIZE_MAX,
A|
D},
54 if (value && value[0])
61 gme_info_t *info = gme->
info;
68 add_meta(s,
"copyright", info->copyright);
69 add_meta(s,
"comment", info->comment);
78 #define AUDIO_PKT_SIZE 512
104 "value %"PRIi64
", consider increasing the max_size option\n",
159 gme_free_info(gme->
info);
175 if (gme_identify_header(p->
buf)[0]) {
200 .priv_class = &class_gme,