GNOME Bugzilla – Bug 148021
Bug in lib-riff
Last modified: 2004-12-22 21:47:04 UTC
Try to read a wav file with PCM data inside to encode in other format. I think there is a bug in riff-media.c (or in riff-read.c). In "gst_riff_read_strf_auds(..)" function, there is a swap if "G_BYTE_ORDER == G_BIG_ENDIAN". Now, if you look inside "gst_riff_create_audio_caps(..)", when codecID is "GST_RIFF_WAVE_FORMAT_PCM", the same fields are swap again. That cause my pipeline to failed on Sun since these value are swap twince, so they are invalid. I'me suggesting you to remove the swapping in riff-media.c when we have PCM. I'me not sure if this may impact something else...but it fix the actual problem.
Oi, bad bug. Thanks for finding. Fixed in CVS.