82 .log_level_offset_offset = offsetof(
AVCodecContext, log_level_offset),
180 "Tried to copy AVCodecContext %p into already-initialized %p\n",
187 memcpy(dest, src,
sizeof(*dest));
194 dest->
codec = orig_codec;
214 #define alloc_and_copy_or_fail(obj, size, pad) \
215 if (src->obj && size > 0) { \
216 dest->obj = av_malloc(size + pad); \
219 memcpy(dest->obj, src->obj, size); \
221 memset(((uint8_t *) dest->obj) + size, 0, pad); \
230 #undef alloc_and_copy_or_fail
248 #define FOFFSET(x) offsetof(AVFrame,x)
275 #define SROFFSET(x) offsetof(AVSubtitleRect,x)