[FFmpeg-devel] IEC61937 compatible muxer
Bartlomiej Wolowiec
bartek.wolowiec
Wed Aug 12 21:31:31 CEST 2009
Monday 10 August 2009 13:38:56 Michael Niedermayer napisa?(a):
> [...]
>
> > + ? ?{
> > + ? ? ? ?//XXX swab... ?
> > + ? ? ? ?uint16_t *data = (uint16_t *) pkt->data;
> > + ? ? ? ?int i;
> > + ? ? ? ?for (i = 0; i < pkt->size >> 1; i++)
> > + ? ? ? ? ? ?put_be16(s->pb, data[i]);
> > + ? ?}
>
> should probably be swaped in memory and then written at once
but how should i get large buffer ? call av_malloc/av_free every time ? or
call av_malloc only when old buffer has not enough size ?
--
Bartlomiej Wolowiec
More information about the ffmpeg-devel
mailing list