static int header_len, oggbuf_len, vi_channels;
static char *header, *oggbuf;
static ssize_t *chunk_table, max_chunk_len;
-struct audio_format *af;
+struct audio_format_handler *af;
static long vi_sampling_rate, vi_bitrate, vi_bitrate_nominal,
num_chunks;
return header;
}
-void ogg_init(void *p)
+static const char* ogg_suffixes[] = {"ogg", NULL};
+void ogg_init(struct audio_format_handler *p)
{
af = p;
af->reposition_stream = ogg_reposition_stream;
af->chunk_tv.tv_sec = 0;
af->chunk_tv.tv_usec = 250 * 1000;
tv_scale(3, &af->chunk_tv, &af->eof_tv);
+ af->suffixes = ogg_suffixes;
}