[FFmpeg-devel] [patch] 6 channel rawaudioinputresultsininvalid PCM packet error

Phil Rutschman philr
Mon Nov 10 21:42:23 CET 2008

> setting it to 8 if av_get_bits_per_sample() returns 0 does seem rather
> wrong.

Fixed. The value is now simply assigned. Let me know if you prefer an
error message and return to the assert, but it is IMHO a bug for
av_get_bits_per_sample to return zero when passed the ID of a raw PCM
codec, so an assert seemed appropriate.
> tabs are forbiden in ffmpeg svn


I also added a comment explaining why the packet size needs manipulating
in the first place. 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: raw_audio_6_channels-v4.diff
Type: application/octet-stream
Size: 1255 bytes
Desc: raw_audio_6_channels-v4.diff
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20081110/6a8f5be7/attachment.obj>

More information about the ffmpeg-devel mailing list