[FFmpeg-devel] [PATCH] flac demuxer

Michael Niedermayer michaelni
Sat May 3 02:03:06 CEST 2008

On Fri, May 02, 2008 at 04:47:14PM -0700, Mike Melanson wrote:
> Michael Niedermayer wrote:
> > huh? If the codec bitstream supports a smaller last frame the container
> > wont make it bigger or make it dissapear.
> I always assumed that, because non-lossless compressors are necessarily
> lossy, they can take liberties with padding out a frame with silent
> samples. Is this not done in practice?

It is, but where is the relation to containers? If the decoder outputs
fewer samples for the last packet theres nothing the container can do.
lossy codecs generally dont support such partial packets, lossless codecs
do or should.

Flac allows the blocksize to be expplicitly coded so the last packet can be
smaller, theres no relation to the container.

Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

Opposition brings concord. Out of discord comes the fairest harmony.
-- Heraclitus
-------------- 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/20080503/e1e723ad/attachment.pgp>

More information about the ffmpeg-devel mailing list