[FFmpeg-devel] [PATCH 09/15] tscc: Fix warning about discarded qualifier

Reimar Döffinger Reimar.Doeffinger at gmx.de
Fri Jul 27 18:36:15 CEST 2012


On Fri, Jul 27, 2012 at 05:23:19AM -0300, jamal wrote:
> ---
>  libavcodec/tscc.c |    4 ++--
>  1 files changed, 2 insertions(+), 2 deletions(-)
> 
> diff --git a/libavcodec/tscc.c b/libavcodec/tscc.c
> index fcfa85b..b33c99b 100644
> --- a/libavcodec/tscc.c
> +++ b/libavcodec/tscc.c
> @@ -72,10 +72,10 @@ typedef struct TsccContext {
>   */
>  static int decode_frame(AVCodecContext *avctx, void *data, int *data_size, AVPacket *avpkt)
>  {
> -    const uint8_t *buf = avpkt->data;
> +    uint8_t *buf = avpkt->data;
>      int buf_size = avpkt->size;
>      CamtasiaContext * const c = avctx->priv_data;
> -    const unsigned char *encoded = buf;
> +    unsigned char *encoded = buf;

I presume this is the usual "stupid Zlib code" issue?
In that case I'd be in favour of adding casts, they are easier to grep
for and remove if zlib ever gets fixed.


More information about the ffmpeg-devel mailing list