82 .log_level_offset_offset = offsetof(
AVCodecContext, log_level_offset),
147 if(avctx==NULL)
return NULL;
179 "Tried to copy AVCodecContext %p into already-initialized %p\n",
186 memcpy(dest, src,
sizeof(*dest));
193 dest->
codec = orig_codec;
213 #define alloc_and_copy_or_fail(obj, size, pad) \
214 if (src->obj && size > 0) { \
215 dest->obj = av_malloc(size + pad); \
218 memcpy(dest->obj, src->obj, size); \
220 memset(((uint8_t *) dest->obj) + size, 0, pad); \
229 #undef alloc_and_copy_or_fail
247 #define FOFFSET(x) offsetof(AVFrame,x)
274 #define SROFFSET(x) offsetof(AVSubtitleRect,x)