[FFmpeg-devel] [PATCH] VP8 de/encode via libvpx

James Zern jzern
Thu Jun 3 18:59:35 CEST 2010


On Thu, Jun 3, 2010 at 11:28, Michael Niedermayer <michaelni at gmx.at> wrote:
> On Wed, Jun 02, 2010 at 06:22:53PM -0400, James Zern wrote:
> [...]
>> +static inline void cx_pktcpy(struct FrameListData *dst,
>> + ? ? ? ? ? ? ? ? ? ? ? ? ? ? const struct vpx_codec_cx_pkt *src)
>> +{
>> + ? ?dst->pts ? ? ?= src->data.frame.pts;
>> + ? ?dst->duration = src->data.frame.duration;
>> + ? ?dst->flags ? ?= src->data.frame.flags;
>> + ? ?dst->sz ? ? ? = src->data.frame.sz;
>> + ? ?dst->buf ? ? ?= src->data.frame.buf;
>> +}
>
> why this function instead of
> *dst= src->data.frame
> ?
>
Different base types so this alone won't work. The FrameListData pulls
some fields from the frame unnamed struct in vpx_codec_cx_pkt. Some
casting could be done with the above but I don't know if that's for
the best.



More information about the ffmpeg-devel mailing list