Mercurial > libavcodec.hg
comparison h263dec.c @ 60:35c1141e23d9 libavcodec
moved matrix init away from MPV_common_init()
author | glantau |
---|---|
date | Sun, 12 Aug 2001 00:52:37 +0000 |
parents | 41791691746f |
children | cdd89f96cbe1 |
comparison
equal
deleted
inserted
replaced
59:efd3c19f6d62 | 60:35c1141e23d9 |
---|---|
26 //#define DEBUG | 26 //#define DEBUG |
27 | 27 |
28 static int h263_decode_init(AVCodecContext *avctx) | 28 static int h263_decode_init(AVCodecContext *avctx) |
29 { | 29 { |
30 MpegEncContext *s = avctx->priv_data; | 30 MpegEncContext *s = avctx->priv_data; |
31 | 31 int i; |
32 | |
32 s->out_format = FMT_H263; | 33 s->out_format = FMT_H263; |
33 | 34 |
34 s->width = avctx->width; | 35 s->width = avctx->width; |
35 s->height = avctx->height; | 36 s->height = avctx->height; |
36 | 37 |
54 } | 55 } |
55 | 56 |
56 /* for h263, we allocate the images after having read the header */ | 57 /* for h263, we allocate the images after having read the header */ |
57 if (MPV_common_init(s) < 0) | 58 if (MPV_common_init(s) < 0) |
58 return -1; | 59 return -1; |
60 | |
61 /* XXX: suppress this matrix init, only needed because using mpeg1 | |
62 dequantize in mmx case */ | |
63 for(i=0;i<64;i++) | |
64 s->non_intra_matrix[i] = default_non_intra_matrix[i]; | |
59 | 65 |
60 if (s->h263_msmpeg4) | 66 if (s->h263_msmpeg4) |
61 msmpeg4_decode_init_vlc(s); | 67 msmpeg4_decode_init_vlc(s); |
62 else | 68 else |
63 h263_decode_init_vlc(s); | 69 h263_decode_init_vlc(s); |