82 .log_level_offset_offset = offsetof(
AVCodecContext, log_level_offset),
147 if(avctx==NULL)
return NULL;
161 "Tried to copy AVCodecContext %p into already-initialized %p\n",
169 memcpy(dest, src,
sizeof(*dest));
190 #define alloc_and_copy_or_fail(obj, size, pad) \
191 if (src->obj && size > 0) { \
192 dest->obj = av_malloc(size + pad); \
195 memcpy(dest->obj, src->obj, size); \
197 memset(((uint8_t *) dest->obj) + size, 0, pad); \
205 #undef alloc_and_copy_or_fail
223 #define FOFFSET(x) offsetof(AVFrame,x)
250 #define SROFFSET(x) offsetof(AVSubtitleRect,x)