[FFmpeg-devel] [patch] 6 channel rawaudioinputresultsin invalid PCM packet error

Phil Rutschman philr
Mon Nov 10 18:57:03 CET 2008

> bits_per_coded_sample could be set in raw_read_header() it would at
> least avoid recalculating its value in every packet

Done. bits_per_coded_sample is set to av_get_bits_per_sample() unless
the latter returns zero, in which case it's set to 8. Alternatively I
could error or assert on a zero return value, which should never happen
with raw audio.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: raw_audio_6_channels-v3.diff
Type: application/octet-stream
Size: 1189 bytes
Desc: raw_audio_6_channels-v3.diff
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20081110/da483d7f/attachment.obj>

More information about the ffmpeg-devel mailing list