82 .log_level_offset_offset = offsetof(
AVCodecContext, log_level_offset),
89 #if FF_API_ALLOC_CONTEXT
155 if(avctx==NULL)
return NULL;
165 #if FF_API_ALLOC_CONTEXT
169 if(avctx==NULL)
return NULL;
171 avcodec_get_context_defaults2(avctx, codec_type);
189 "Tried to copy AVCodecContext %p into already-initialized %p\n",
197 memcpy(dest, src,
sizeof(*dest));
219 #define alloc_and_copy_or_fail(obj, size, pad) \
220 if (src->obj && size > 0) { \
221 dest->obj = av_malloc(size + pad); \
224 memcpy(dest->obj, src->obj, size); \
226 memset(((uint8_t *) dest->obj) + size, 0, pad); \
234 #undef alloc_and_copy_or_fail
252 #define FOFFSET(x) offsetof(AVFrame,x)
279 #define SROFFSET(x) offsetof(AVSubtitleRect,x)