summaryrefslogtreecommitdiff
path: root/libavcodec/tta.c
diff options
context:
space:
mode:
authorPaul B Mahol <onemda@gmail.com>2013-06-13 21:49:18 +0000
committerPaul B Mahol <onemda@gmail.com>2013-06-13 21:49:18 +0000
commitff0bdf937568908a35d4091cb5c83a0155117ae6 (patch)
tree0a667b240470697645e22ec1289ee564cdb53501 /libavcodec/tta.c
parentc112e36d41da5eb25af3230e2365737759e75375 (diff)
downloadffmpeg-ff0bdf937568908a35d4091cb5c83a0155117ae6.tar.gz
lavc: copy AVCodecContext for threads
Signed-off-by: Paul B Mahol <onemda@gmail.com>
Diffstat (limited to 'libavcodec/tta.c')
-rw-r--r--libavcodec/tta.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/libavcodec/tta.c b/libavcodec/tta.c
index 710aa359d1..6697d84905 100644
--- a/libavcodec/tta.c
+++ b/libavcodec/tta.c
@@ -410,6 +410,8 @@ error:
static int init_thread_copy(AVCodecContext *avctx)
{
+ TTAContext *s = avctx->priv_data;
+ s->avctx = avctx;
return allocate_buffers(avctx);
}