Remove useless code causing crash in Targa decoder
authorKostya Shishkov <kostya.shishkov@gmail.com>
Thu, 17 Sep 2009 05:01:27 +0000 (05:01 +0000)
committerKostya Shishkov <kostya.shishkov@gmail.com>
Thu, 17 Sep 2009 05:01:27 +0000 (05:01 +0000)
Originally committed as revision 19892 to svn://svn.ffmpeg.org/ffmpeg/trunk

libavcodec/targa.c

index 3e7903a..b6fe5df 100644 (file)
@@ -189,7 +189,6 @@ static int decode_frame(AVCodecContext *avctx,
                 *pal++ = (b << 16) | (g << 8) | r;
             }
             p->palette_has_changed = 1;
-            avctx->palctrl->palette_changed = 0;
         }
     }
     if((compr & (~TGA_RLE)) == TGA_NODATA)