From 650dee63c8b1e6693c6cf5983f4a5ed3f571379f Mon Sep 17 00:00:00 2001 From: Anton Khirnov Date: Wed, 18 Jun 2014 10:59:37 +0200 Subject: dv: get rid of global non-const tables Instead, store them in the context and compute on each parameter change. --- libavcodec/dvenc.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'libavcodec/dvenc.c') diff --git a/libavcodec/dvenc.c b/libavcodec/dvenc.c index 552f6912d0..94fb7eaf6f 100644 --- a/libavcodec/dvenc.c +++ b/libavcodec/dvenc.c @@ -46,7 +46,7 @@ static av_cold int dvvideo_encode_init(AVCodecContext *avctx) ff_dv_print_profiles(avctx, AV_LOG_ERROR); return AVERROR(EINVAL); } - ret = ff_dv_init_dynamic_tables(s->sys); + ret = ff_dv_init_dynamic_tables(s, s->sys); if (ret < 0) { av_log(avctx, AV_LOG_ERROR, "Error initializing work tables.\n"); return ret; @@ -680,7 +680,7 @@ static int dvvideo_encode_frame(AVCodecContext *c, AVPacket *pkt, c->coded_frame->pict_type = AV_PICTURE_TYPE_I; s->buf = pkt->data; - c->execute(c, dv_encode_video_segment, s->sys->work_chunks, NULL, + c->execute(c, dv_encode_video_segment, s->work_chunks, NULL, dv_work_pool_size(s->sys), sizeof(DVwork_chunk)); emms_c(); -- cgit v1.2.3