[Ffmpeg-devel] [RFC] Real demuxer and audio reordering

Rich Felker dalias
Tue Nov 22 00:20:07 CET 2005


On Mon, Nov 21, 2005 at 09:03:38PM +0100, Benjamin Larsson wrote:
> Rich Felker wrote:
> 
> >On Sun, Nov 20, 2005 at 06:00:29PM +0100, Roberto Togni wrote:
> >  
> >
> >>Hi all.
> >>
> >>Attached you can find a patch to move audio data reordering in
> >>rm demuxer for cook and 28_8 decoders. It also fix the extradata
> >>problem by storing it with a fixed endian (i chose BE because all
> >>data in rm files is BE).
> >>    
> >>
> >
> >WTF? The extradata is raw binary data IDENTICAL TO HOWEVER IT'S STORED
> >IN THE FILE!! There is no endianness to it because it is not a
> >ready-to-read data structure but a serialized platform-independent
> >format.
> >  
> >
> It is data needed to init the binary codecs. Especially one variable
> is needed (sub_packet_size). Certain tricks could maybe be done to
> get rid of it and only use real extradata from the file.

Just send the binary decoder packets with only one sub packet, and
sub_packet_size == entire packet size.

Rich





More information about the ffmpeg-devel mailing list