From 1eaae7abb8f208fefb4e8b9e983e61b2499206a3 Mon Sep 17 00:00:00 2001 From: Vittorio Giovara Date: Sat, 20 Feb 2016 00:43:22 -0500 Subject: intrax8: Reference the current AVCodecContext It will be needed to initialize BlockDSP in the next commit. --- libavcodec/intrax8.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'libavcodec/intrax8.c') diff --git a/libavcodec/intrax8.c b/libavcodec/intrax8.c index f23ab811c2..b35d25214b 100644 --- a/libavcodec/intrax8.c +++ b/libavcodec/intrax8.c @@ -737,13 +737,15 @@ static void x8_init_block_index(IntraX8Context *w, AVFrame *frame, int mb_y) w->dest[2] += (mb_y & (~1)) * uvlinesize << 2; } -av_cold int ff_intrax8_common_init(IntraX8Context *w, IDCTDSPContext *idsp, +av_cold int ff_intrax8_common_init(AVCodecContext *avctx, + IntraX8Context *w, IDCTDSPContext *idsp, MpegEncContext *const s) { int ret = x8_vlc_init(); if (ret < 0) return ret; + w->avctx = avctx; w->idsp = *idsp; w->s = s; -- cgit v1.2.3