X-Git-Url: http://git.tuebingen.mpg.de/?p=paraslash.git;a=blobdiff_plain;f=opus_afh.c;h=dca6cfbad1ce3ff8cdf6d820b01bf33bf9a02110;hp=ed6fe5c80625487d6d6cc852a349650f4cd80ad8;hb=3685a9093ae12ff9ce02fc58e607eb9b63894443;hpb=767a4a54c967bc4b80bd14d02e89fe91acd848dd diff --git a/opus_afh.c b/opus_afh.c index ed6fe5c8..dca6cfba 100644 --- a/opus_afh.c +++ b/opus_afh.c @@ -291,14 +291,15 @@ static void opus_get_header(void *map, size_t mapsize, char **buf, } /** - * The init function of the ogg/opus audio format handler. + * The audio format handler for ogg/opus. * - * \param afh Pointer to the struct to initialize. + * The opus codec was standardized by the Internet Engineering Task Force and + * is described in RFC 6716 (2012). The audio format handler depends on the ogg + * and the opus libraries. */ -void opus_afh_init(struct audio_format_handler *afh) -{ - afh->get_file_info = opus_get_file_info, - afh->get_header = opus_get_header; - afh->suffixes = opus_suffixes; - afh->rewrite_tags = opus_rewrite_tags; -} +const struct audio_format_handler opus_afh = { + .get_file_info = opus_get_file_info, + .get_header = opus_get_header, + .suffixes = opus_suffixes, + .rewrite_tags = opus_rewrite_tags, +};