Originally committed as revision 2162 to svn://svn.ffmpeg.org/ffmpeg/trunk
Fabrice Bellard authored on 2003/08/25 07:28:41... | ... |
@@ -563,7 +563,6 @@ void mpeg4_encode_mb(MpegEncContext * s, |
563 | 563 |
int motion_x, int motion_y) |
564 | 564 |
{ |
565 | 565 |
int cbpc, cbpy, pred_x, pred_y; |
566 |
- int bits; |
|
567 | 566 |
PutBitContext * const pb2 = s->data_partitioning ? &s->pb2 : &s->pb; |
568 | 567 |
PutBitContext * const tex_pb = s->data_partitioning && s->pict_type!=B_TYPE ? &s->tex_pb : &s->pb; |
569 | 568 |
PutBitContext * const dc_pb = s->data_partitioning && s->pict_type!=I_TYPE ? &s->pb2 : &s->pb; |
... | ... |
@@ -249,7 +249,6 @@ static void mdec_common_init(AVCodecContext *avctx){ |
249 | 249 |
static int decode_init(AVCodecContext *avctx){ |
250 | 250 |
MDECContext * const a = avctx->priv_data; |
251 | 251 |
AVFrame *p= (AVFrame*)&a->picture; |
252 |
- int i; |
|
253 | 252 |
|
254 | 253 |
mdec_common_init(avctx); |
255 | 254 |
init_vlcs(); |
... | ... |
@@ -393,6 +393,7 @@ void ff_init_me(MpegEncContext *s){ |
393 | 393 |
} |
394 | 394 |
} |
395 | 395 |
|
396 |
+#if 0 |
|
396 | 397 |
static int pix_dev(uint8_t * pix, int line_size, int mean) |
397 | 398 |
{ |
398 | 399 |
int s, i, j; |
... | ... |
@@ -414,6 +415,7 @@ static int pix_dev(uint8_t * pix, int line_size, int mean) |
414 | 414 |
} |
415 | 415 |
return s; |
416 | 416 |
} |
417 |
+#endif |
|
417 | 418 |
|
418 | 419 |
static inline void no_motion_search(MpegEncContext * s, |
419 | 420 |
int *mx_ptr, int *my_ptr) |
... | ... |
@@ -186,7 +186,9 @@ static int RENAME(hpel_motion_search)(MpegEncContext * s, |
186 | 186 |
#if 1 |
187 | 187 |
int key; |
188 | 188 |
int map_generation= s->me.map_generation; |
189 |
+#ifndef NDEBUG |
|
189 | 190 |
uint32_t *map= s->me.map; |
191 |
+#endif |
|
190 | 192 |
key= ((my-1)<<ME_MAP_MV_BITS) + (mx) + map_generation; |
191 | 193 |
assert(map[(index-(1<<ME_MAP_SHIFT))&(ME_MAP_SIZE-1)] == key); |
192 | 194 |
key= ((my+1)<<ME_MAP_MV_BITS) + (mx) + map_generation; |
... | ... |
@@ -150,9 +150,6 @@ static void common_init(AVCodecContext *avctx){ |
150 | 150 |
} |
151 | 151 |
|
152 | 152 |
static int decode_init(AVCodecContext *avctx){ |
153 |
- VCR1Context * const a = avctx->priv_data; |
|
154 |
- AVFrame *p= (AVFrame*)&a->picture; |
|
155 |
- int i; |
|
156 | 153 |
|
157 | 154 |
common_init(avctx); |
158 | 155 |
|
... | ... |
@@ -162,8 +159,6 @@ static int decode_init(AVCodecContext *avctx){ |
162 | 162 |
} |
163 | 163 |
|
164 | 164 |
static int encode_init(AVCodecContext *avctx){ |
165 |
- VCR1Context * const a = avctx->priv_data; |
|
166 |
- int i; |
|
167 | 165 |
|
168 | 166 |
common_init(avctx); |
169 | 167 |
|
... | ... |
@@ -171,7 +166,6 @@ static int encode_init(AVCodecContext *avctx){ |
171 | 171 |
} |
172 | 172 |
|
173 | 173 |
static int decode_end(AVCodecContext *avctx){ |
174 |
- VCR1Context * const a = avctx->priv_data; |
|
175 | 174 |
|
176 | 175 |
avcodec_default_free_buffers(avctx); |
177 | 176 |
|