[FFmpeg-devel] IEC61937 compatible muxer

Michael Niedermayer michaelni
Wed Aug 12 23:30:23 CEST 2009


On Wed, Aug 12, 2009 at 10:23:14PM +0200, Reimar D?ffinger wrote:
> On Wed, Aug 12, 2009 at 09:51:06PM +0200, Michael Niedermayer wrote:
> > On Wed, Aug 12, 2009 at 09:31:31PM +0200, Bartlomiej Wolowiec wrote:
> > > 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 ?
> > 
> > try av_fast_realloc()
> 
> Shouldn't that be av_fast_malloc ? I think it doesn't need the previous
> data...

indeed ...

[...]
-- 
Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

I do not agree with what you have to say, but I'll defend to the death your
right to say it. -- Voltaire
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20090812/0bb9b77a/attachment.pgp>



More information about the ffmpeg-devel mailing list