diff dvbsubdec.c @ 4659:83dad4f266a6 libavcodec

remove useless static cm variable
author michael
date Tue, 13 Mar 2007 22:53:01 +0000
parents 05e932ddaaa9
children 6258f497d42e
line wrap: on
line diff
--- a/dvbsubdec.c	Tue Mar 13 22:51:49 2007 +0000
+++ b/dvbsubdec.c	Tue Mar 13 22:53:01 2007 +0000
@@ -32,7 +32,7 @@
 #define DVBSUB_OBJECT_SEGMENT   0x13
 #define DVBSUB_DISPLAY_SEGMENT  0x80
 
-static unsigned char *cm;
+#define cm (ff_cropTbl + MAX_NEG_CROP)
 
 #ifdef DEBUG_SAVE_IMAGES
 #undef fprintf
@@ -344,8 +344,6 @@
     int i, r, g, b, a = 0;
     DVBSubContext *ctx = (DVBSubContext*) avctx->priv_data;
 
-    cm = ff_cropTbl + MAX_NEG_CROP;
-
     memset(avctx->priv_data, 0, sizeof(DVBSubContext));
 
     ctx->composition_id = avctx->sub_id & 0xffff;