On 01/27/2012 07:39 AM, Anton Khirnov wrote:

> Fixes bug 212.
> ---
>  doc/APIchanges         |    3 ++
>  libavformat/Makefile   |   54 
> ++++++++++++++++++++++++------------------------
>  libavformat/avformat.h |   24 +++++++++++++++++++++
>  libavformat/utils.c    |    9 ++++++++
>  libavformat/version.h  |    2 +-
>  5 files changed, 64 insertions(+), 28 deletions(-)
> 
>  /**
> + * @defgroup riff_fourcc RIFF FourCCs
> + * @{
> + * Get the tables mapping RIFF FourCCs to libavcodec CodecIDs. The tables are
> + * meant to be passed to av_codec_get_id()/av_codec_get_tag() as in the
> + * following code:
> + * @code
> + * uint32_t tag = MKTAG('H', '2', '6', '4');
> + * const struct AVCodecTag *table[] = { avformat_get_riff_video_tags(), 0 };
> + * enum CodecID id = av_codec_get_id(table, tag);
> + * @endcode
> + */
> +/**
> + * @return the table mapping RIFF FourCCs for video to libavcodec CodecID.
> + */
> +const struct AVCodecTag *avformat_get_riff_video_tags(void);
> +/**
> + * @return the table mapping RIFF FourCCs for audio to CodecID.
> + */
> +const struct AVCodecTag *avformat_get_riff_audio_tags(void);


RIFF audio tags are really a TwoCC not a FourCC, but I suppose that's
just a technicality. The patch looks fine.

Thanks,
Justin


_______________________________________________
libav-devel mailing list
[email protected]
https://lists.libav.org/mailman/listinfo/libav-devel

Reply via email to