Mercurial > libavcodec.hg
comparison 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 |
comparison
equal
deleted
inserted
replaced
4658:31ebbdad594e | 4659:83dad4f266a6 |
---|---|
30 #define DVBSUB_REGION_SEGMENT 0x11 | 30 #define DVBSUB_REGION_SEGMENT 0x11 |
31 #define DVBSUB_CLUT_SEGMENT 0x12 | 31 #define DVBSUB_CLUT_SEGMENT 0x12 |
32 #define DVBSUB_OBJECT_SEGMENT 0x13 | 32 #define DVBSUB_OBJECT_SEGMENT 0x13 |
33 #define DVBSUB_DISPLAY_SEGMENT 0x80 | 33 #define DVBSUB_DISPLAY_SEGMENT 0x80 |
34 | 34 |
35 static unsigned char *cm; | 35 #define cm (ff_cropTbl + MAX_NEG_CROP) |
36 | 36 |
37 #ifdef DEBUG_SAVE_IMAGES | 37 #ifdef DEBUG_SAVE_IMAGES |
38 #undef fprintf | 38 #undef fprintf |
39 #if 0 | 39 #if 0 |
40 static void png_save(const char *filename, uint8_t *bitmap, int w, int h, | 40 static void png_save(const char *filename, uint8_t *bitmap, int w, int h, |
341 | 341 |
342 static int dvbsub_init_decoder(AVCodecContext *avctx) | 342 static int dvbsub_init_decoder(AVCodecContext *avctx) |
343 { | 343 { |
344 int i, r, g, b, a = 0; | 344 int i, r, g, b, a = 0; |
345 DVBSubContext *ctx = (DVBSubContext*) avctx->priv_data; | 345 DVBSubContext *ctx = (DVBSubContext*) avctx->priv_data; |
346 | |
347 cm = ff_cropTbl + MAX_NEG_CROP; | |
348 | 346 |
349 memset(avctx->priv_data, 0, sizeof(DVBSubContext)); | 347 memset(avctx->priv_data, 0, sizeof(DVBSubContext)); |
350 | 348 |
351 ctx->composition_id = avctx->sub_id & 0xffff; | 349 ctx->composition_id = avctx->sub_id & 0xffff; |
352 ctx->ancillary_id = avctx->sub_id >> 16; | 350 ctx->ancillary_id = avctx->sub_id >> 16; |