[FFmpeg-devel] [PATCH] remove more unused code

Kostya kostya.shishkov
Sun May 3 13:31:41 CEST 2009


On Sun, May 03, 2009 at 12:01:20PM +0200, Benjamin Larsson wrote:
> All the dead nested assignments CSA found.
> 
> MvH
> Benjamin Larsson

> Index: libavcodec/zmbvenc.c
> ===================================================================
> --- libavcodec/zmbvenc.c	(revision 18729)
> +++ libavcodec/zmbvenc.c	(working copy)
> @@ -117,7 +117,6 @@
>      AVFrame * const p = &c->pic;
>      uint8_t *src, *prev;
>      uint32_t *palptr;
> -    int zret = Z_OK;
>      int len = 0;
>      int keyframe, chpal;
>      int fl;
> @@ -226,7 +225,7 @@
>      c->zstream.next_out = c->comp_buf;
>      c->zstream.avail_out = c->comp_size;
>      c->zstream.total_out = 0;
> -    if((zret = deflate(&c->zstream, Z_SYNC_FLUSH)) != Z_OK){
> +    if(deflate(&c->zstream, Z_SYNC_FLUSH) != Z_OK){
>          av_log(avctx, AV_LOG_ERROR, "Error compressing data\n");
>          return -1;
>      }

this one is ok



More information about the ffmpeg-devel mailing list