[Ffmpeg-devel] warning when writing wav

Michael Niedermayer michaelni
Sat Feb 24 02:52:37 CET 2007


Hi

On Fri, Feb 23, 2007 at 08:04:44PM -0500, Justin Ruggles wrote:
> Hi,
> 
> After r8044, I'm getting the warning message "requested bits_per_sample
> (0) and actually stored (16) differ" whenever I output to a 16-bit pcm
> wav file.  This happens even if I explicitly set the codec to pcm_s16le
> or use "-bits_per_sample 16" on the commandline.  Is there any way to
> avoid this warning?  Should it be up to the encoder to specify the bit
> depth it's outputting?  And if so, could pcm.c be modified to set the
> bit depth based on which pcm codec is used?

first the warning is entirely harmless
the riff based formats have always and still ignore the bits_per_sample
value and rather use the codec_id to select one, the warning just says
that the value which is in the context differs from what will be used

ive made it less noisy ...

about the question which part of the code should set it, i dunno either
riff.c itself if bits_per_sample==0 or some generic code in utils.c

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

No human being will ever know the Truth, for even if they happen to say it
by chance, they would not even known they had done so. -- Xenophanes
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20070224/adcfc50e/attachment.pgp>



More information about the ffmpeg-devel mailing list