[Ffmpeg-devel] warning when writing wav

Justin Ruggles justinruggles
Sat Feb 24 03:36:49 CET 2007


Michael Niedermayer wrote:
> 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
> 
> [...]

Thank you.




More information about the ffmpeg-devel mailing list