[FFmpeg-devel] [PATCH] miscelleneous NUT fixes

Rich Felker dalias
Sun Feb 3 07:11:33 CET 2008

On Sun, Feb 03, 2008 at 12:34:46AM +0100, Michael Niedermayer wrote:
> On Sat, Feb 02, 2008 at 02:19:25PM -0500, Rich Felker wrote:
> > On Sat, Feb 02, 2008 at 06:41:20PM +0100, Michael Niedermayer wrote:
> > > > 1. "Bleh, libnut muxed this ;)\n" please, I fixed this bug over a year ago :)
> > > 
> > > rejected, we do not remove workarounds needed for demuxing/decoding
> > 
> > While I agree with this principle, I don't think it applies to
> > under-development formats. The snow decoder does not support every
> > random historical version of snow, and likewise the nut demuxer should
> I would support them if it is easy to do and would not cause a slowdown.

I reviewed the code in question and it's actually a bug. Samplerate
num=2 den=3 means 2 samples every 3 seconds, but with the bogus code
in place, it will be interpreted as 3 samples per second. Apparently
lavf does not support non-integer values for samples-per-second so it
should drop an "unsupported format" error in any case rather than
misinterpreting the data.

I stand by Oded's patch to remove the incorrect interpretation and
hope lavf will eventually support non-integer samplerates.


More information about the ffmpeg-devel mailing list