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

jamal jamrial at gmail.com
Fri Jul 27 17:44:21 CEST 2012


On 27/07/12 5:40 AM, Clément Bœsch wrote:
> 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.
> 
It's handled like this in libavcodec/options.c so i thought it was ok. I'll send a new patch in a moment.

Regards.


More information about the ffmpeg-devel mailing list