comparison mpeg12.c @ 292:73a9ce3d9715 libavcodec

fcode_tables where too small, found by Klaas-Pieter Vlieg <vlieg@eurescom.de>
author michaelni
date Sun, 24 Mar 2002 23:45:13 +0000
parents 1fc96b02142e
children c1a8a1b4a24b
comparison
equal deleted inserted replaced
291:ab46ebfd419f 292:73a9ce3d9715
49 static int mpeg2_decode_block_intra(MpegEncContext *s, 49 static int mpeg2_decode_block_intra(MpegEncContext *s,
50 DCTELEM *block, 50 DCTELEM *block,
51 int n); 51 int n);
52 static int mpeg_decode_motion(MpegEncContext *s, int fcode, int pred); 52 static int mpeg_decode_motion(MpegEncContext *s, int fcode, int pred);
53 53
54 static UINT16 mv_penalty[MAX_FCODE][MAX_MV*2+1]; 54 static UINT16 mv_penalty[MAX_FCODE+1][MAX_MV*2+1];
55 static UINT8 fcode_tab[MAX_MV*2+1]; 55 static UINT8 fcode_tab[MAX_MV*2+1];
56 56
57 static void put_header(MpegEncContext *s, int header) 57 static void put_header(MpegEncContext *s, int header)
58 { 58 {
59 align_put_bits(&s->pb); 59 align_put_bits(&s->pb);