[FFmpeg-devel] [PATCH 14/15] options: Fix warning about incompatible pointer type

Clément Bœsch ubitux at gmail.com
Fri Jul 27 10:40:49 CEST 2012


On Fri, Jul 27, 2012 at 05:23:24AM -0300, jamal wrote:
> ---
>  libavformat/options.c |    2 +-
>  1 files changed, 1 insertions(+), 1 deletions(-)
> 
> diff --git a/libavformat/options.c b/libavformat/options.c
> index 8548381..e87c754 100644
> --- a/libavformat/options.c
> +++ b/libavformat/options.c
> @@ -90,7 +90,7 @@ static const AVClass av_format_context_class = {
>      .child_next     = format_child_next,
>      .child_class_next = format_child_class_next,
>      .category       = AV_CLASS_CATEGORY_MUXER,
> -    .get_category   = get_category,
> +    .get_category   = (void*)get_category,

I think it would be best to make the void* → AVFormatContext* in
get_category() function instead.

[...]

-- 
Clément B.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 490 bytes
Desc: not available
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20120727/27914ebc/attachment.asc>


More information about the ffmpeg-devel mailing list