diff options
author | Vittorio Giovara <vittorio.giovara@gmail.com> | 2016-02-20 08:43:22 +0300 |
---|---|---|
committer | Vittorio Giovara <vittorio.giovara@gmail.com> | 2016-03-25 22:55:02 +0300 |
commit | 1eaae7abb8f208fefb4e8b9e983e61b2499206a3 (patch) | |
tree | 136d33d22fd5f8dfe60201fdd7aebbffee77791f /libavcodec/intrax8.c | |
parent | 8072345e9f86d88fbc4a15c17cb03f1e4701c9a5 (diff) |
intrax8: Reference the current AVCodecContext
It will be needed to initialize BlockDSP in the next commit.
Diffstat (limited to 'libavcodec/intrax8.c')
-rw-r--r-- | libavcodec/intrax8.c | 4 |
1 files changed, 3 insertions, 1 deletions
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; |