diff options
author | Justin Ruggles <justin.ruggles@gmail.com> | 2011-11-15 15:34:50 -0500 |
---|---|---|
committer | Justin Ruggles <justin.ruggles@gmail.com> | 2011-11-19 10:01:05 -0500 |
commit | f3a29b750a5979ae6847879fba758faf1fae88d0 (patch) | |
tree | 0a5bf0e6822f0adf284a76c5d28ce55e3ad21d24 /libavcodec/h264.c | |
parent | 513b6919555b9e2b0c1f86fd5f02caaa14bcbe69 (diff) | |
download | ffmpeg-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/h264.c')
-rw-r--r-- | libavcodec/h264.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/libavcodec/h264.c b/libavcodec/h264.c index d959d5652a..793052581d 100644 --- a/libavcodec/h264.c +++ b/libavcodec/h264.c @@ -1173,7 +1173,8 @@ static void copy_parameter_set(void **to, void **from, int count, int size) static int decode_init_thread_copy(AVCodecContext *avctx){ H264Context *h= avctx->priv_data; - if (!avctx->is_copy) return 0; + if (!avctx->internal->is_copy) + return 0; memset(h->sps_buffers, 0, sizeof(h->sps_buffers)); memset(h->pps_buffers, 0, sizeof(h->pps_buffers)); |