[FFmpeg-devel] dca.c: are 16384-byte frames valid?

Michael Niedermayer michaelni
Sat Aug 23 15:29:32 CEST 2008


On Sat, Aug 23, 2008 at 03:08:01PM +0600, Alexander E. Patrakov wrote:
> Hello,
> 
> consider a 48 kHz DTS stream encoded at 6144000 bps (the highest 
> officially-allowed bitrate in the spec). Since each DTS subframe contains 32 
> samples for 32 subbands, it expands to 1024 PCM samples. A frame contains at 
> least one subframe, let's assume it contains exactly one subframe. 1024 
> samples per frame  = 1024 / 48000 seconds per frame. Now let's calculate the 
> frame size.
> 
> 6144000 bps * ((1024 / 48000) seconds per frame = 131072 bits per frame, or 
> 16384 bytes per frame. So it looks like 16384-byte frames are, in fact, valid 
> (otherwise, it is impossible to reach 6144000 bps), and ffmpeg should not 
> reject them.

patch applied

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

I am the wisest man alive, for I know one thing, and that is that I know
nothing. -- Socrates
-------------- 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/20080823/e09c1357/attachment.pgp>



More information about the ffmpeg-devel mailing list