83 .log_level_offset_offset = offsetof(
AVCodecContext, log_level_offset),
187 "Tried to copy AVCodecContext %p into already-initialized %p\n",
194 memcpy(dest, src,
sizeof(*dest));
202 dest->
codec = orig_codec;
216 #define alloc_and_copy_or_fail(obj, size, pad) \
217 if (src->obj && size > 0) { \
218 dest->obj = av_malloc(size + pad); \
221 memcpy(dest->obj, src->obj, size); \
223 memset(((uint8_t *) dest->obj) + size, 0, pad); \
232 #undef alloc_and_copy_or_fail
254 #define FOFFSET(x) offsetof(AVFrame,x)
281 #define SROFFSET(x) offsetof(AVSubtitleRect,x)