From f3a29b750a5979ae6847879fba758faf1fae88d0 Mon Sep 17 00:00:00 2001 From: Justin Ruggles Date: Tue, 15 Nov 2011 15:34:50 -0500 Subject: avcodec: move some AVCodecContext fields to an internal struct. A new field, AVCodecContext.internal is used to hold a new struct AVCodecInternal, which has private fields that are not codec-specific and are used by general libavcodec functions. Moved internal_buffer, internal_buffer_count, and is_copy. --- libavcodec/vp3.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'libavcodec/vp3.c') diff --git a/libavcodec/vp3.c b/libavcodec/vp3.c index 991ddce892..a31ad4e99f 100644 --- a/libavcodec/vp3.c +++ b/libavcodec/vp3.c @@ -35,6 +35,7 @@ #include "libavutil/imgutils.h" #include "avcodec.h" +#include "internal.h" #include "dsputil.h" #include "get_bits.h" @@ -2008,7 +2009,8 @@ static av_cold int vp3_decode_end(AVCodecContext *avctx) av_free(s->motion_val[1]); av_free(s->edge_emu_buffer); - if (avctx->is_copy) return 0; + if (avctx->internal->is_copy) + return 0; for (i = 0; i < 16; i++) { free_vlc(&s->dc_vlc[i]); -- cgit v1.2.3