[FFmpeg-devel] [PATCH] HAM6/HAM8 support for IFF demuxer/decoder

Sebastian Vater cdgs.basty
Sun May 9 18:47:48 CEST 2010

Martin Storsj? a ?crit :
> On Sun, 9 May 2010, Sebastian Vater wrote:
>> Stefano Sabatini a ?crit :
>>> On date Thursday 2010-05-06 23:23:20 +0200, Sebastian Vater encoded:
>>>> Sebastian Vater a ?crit :
>>>>  /**
>>>>   * Convert CMAP buffer (stored in extradata) to lavc palette format
>>>>   */
>>>> -int ff_cmap_read_palette(AVCodecContext *avctx, uint32_t *pal)
>>>> +static int cmap_read_palette(AVCodecContext *avctx, uint32_t *pal)
>>> This looks fine, but this change deserves a separate patch.
>> Why? It's important to change this with HAM support, the old code
>> doesn't really have any problems with it.
> No, it is not important for this change. In this patch, you remove usage 
> of ff_cmap_read_palette from libavformat/iff.c. You don't _need_ to change 
> this now. The code will work just as well without changing this.

It is, simply because it is strictly illegal now to call
cmap_read_palette starting with this patch.
The thing is when I keep the function as is, I have to keep the
prototype declaration also in the header file.

But that is dangerous, because people could think that it's still legal
to use it with this patch, but it isn't anymore!
Or may I move the iff.h declaration of ff_cmap_read_palette in


Best regards,
                   :-) Basty/CDGS (-:

More information about the ffmpeg-devel mailing list