[FFmpeg-devel] [PATCH] libavcodec/zmbv.c: Don't modify const buffer

Benoit Fouet benoit.fouet
Tue Feb 17 14:09:01 CET 2009


Hi,

On 02/17/2009 01:56 PM, Patrik Kullman wrote:
> Trying to solve this issue somewhere else than BSFs until that API is
> sorted out.
>
> Copy the const input buffer into the Zlib struct instead of using the
> same address.
>
> Prevents warning:
> libavcodec/zmbv.c: In function ?decode_frame?:
> libavcodec/zmbv.c:494: warning: assignment discards qualifiers from
> pointer target type
>
> After inflate() is complated, free next_in.
>   

well, IMHO, the zlib z_stream structure is lacking a const qualifier, we
shouldn't copy the input stream just to work that around.

Ben





More information about the ffmpeg-devel mailing list