summaryrefslogtreecommitdiff
path: root/libavcodec/h261dec.c
diff options
context:
space:
mode:
authorJohn Stebbins <stebbins@jetheaddev.com>2014-08-08 08:11:20 -0700
committerJohn Stebbins <stebbins@jetheaddev.com>2014-08-14 07:58:49 -0700
commit998c9f15d1ca8c7489775ebcca51623b915988f1 (patch)
treedac8b4d6a607d44422c0ac6179b8507ae13a807e /libavcodec/h261dec.c
parent93f29948e4b06acfb96e7f82d373ef86d6dc55f7 (diff)
idct: remove call to ff_idctdsp_init from ff_MPV_common_init
One step in untangling the mpegvideo code and fixing some problems in the order that initialization is being done in h263dec and h261dec.
Diffstat (limited to 'libavcodec/h261dec.c')
-rw-r--r--libavcodec/h261dec.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/libavcodec/h261dec.c b/libavcodec/h261dec.c
index d83fb3114c..88ca63ddc6 100644
--- a/libavcodec/h261dec.c
+++ b/libavcodec/h261dec.c
@@ -581,10 +581,12 @@ static int h261_decode_frame(AVCodecContext *avctx, void *data,
retry:
init_get_bits(&s->gb, buf, buf_size * 8);
- if (!s->context_initialized)
+ if (!s->context_initialized) {
// we need the IDCT permutaton for reading a custom matrix
+ ff_mpv_idct_init(s);
if (ff_MPV_common_init(s) < 0)
return -1;
+ }
ret = h261_decode_picture_header(h);