[FFmpeg-devel] [PATCH] audio conversion clipping/overflows

Michael Niedermayer michaelni
Tue Mar 2 12:49:04 CET 2010

On Mon, Mar 01, 2010 at 04:42:55PM +0000, M?ns Rullg?rd wrote:
> The best solution to this problem would be if a suitable output range
> could be requested directly from the decoders.  For some decoders this
> is easy in principle, for others it is not.

SAMPLE_FMT_FLT/DBL should contain values of -1.0 ... 1.0
a decoder knowing that its output is larger should scale it down IMHO
it can also export the true volume as a seperate value in the context
this seems simpler to me

My idea here is to have a clear spec of what SAMPLE_FMT_FLT is, and make
decoders follow this.


Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

The real ebay dictionary, page 3
"Rare item" - "Common item with rare defect or maybe just a lie"
"Professional" - "'Toy' made in china, not functional except as doorstop"
"Experts will know" - "The seller hopes you are not an expert"
-------------- 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/20100302/305f6911/attachment.pgp>

More information about the ffmpeg-devel mailing list