aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/mimic.c
diff options
context:
space:
mode:
authorJustin Ruggles <justin.ruggles@gmail.com>2011-11-15 15:34:50 -0500
committerJustin Ruggles <justin.ruggles@gmail.com>2011-11-19 10:01:05 -0500
commitf3a29b750a5979ae6847879fba758faf1fae88d0 (patch)
tree0a5bf0e6822f0adf284a76c5d28ce55e3ad21d24 /libavcodec/mimic.c
parent513b6919555b9e2b0c1f86fd5f02caaa14bcbe69 (diff)
downloadffmpeg-f3a29b750a5979ae6847879fba758faf1fae88d0.tar.gz
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.
Diffstat (limited to 'libavcodec/mimic.c')
-rw-r--r--libavcodec/mimic.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/libavcodec/mimic.c b/libavcodec/mimic.c
index c0d8546eb8..b93f51fa3e 100644
--- a/libavcodec/mimic.c
+++ b/libavcodec/mimic.c
@@ -24,6 +24,7 @@
#include <stdint.h>
#include "avcodec.h"
+#include "internal.h"
#include "get_bits.h"
#include "bytestream.h"
#include "dsputil.h"
@@ -405,7 +406,8 @@ static av_cold int mimic_decode_end(AVCodecContext *avctx)
av_free(ctx->swap_buf);
- if(avctx->is_copy) return 0;
+ if (avctx->internal->is_copy)
+ return 0;
for(i = 0; i < 16; i++)
if(ctx->buf_ptrs[i].data[0])