After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 148021 - Bug in lib-riff
Bug in lib-riff
Status: RESOLVED FIXED
Product: GStreamer
Classification: Platform
Component: gst-plugins
0.8.2
Other opensolaris
: Normal normal
: 0.8.3
Assigned To: GStreamer Maintainers
GStreamer Maintainers
Depends on:
Blocks:
 
 
Reported: 2004-07-20 19:11 UTC by Francis Labonte
Modified: 2004-12-22 21:47 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Francis Labonte 2004-07-20 19:11:28 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.
Comment 1 Ronald Bultje 2004-07-20 21:06:29 UTC
Oi, bad bug. Thanks for finding. Fixed in CVS.