gst/qtdemux/qtdemux.c: Correctly distinguish 8bit vs 16bit raw audio. Fixes #542410.

Original commit message from CVS:
Patch by: Thiago Sousa Santos <thiagoss at lcc dot ufcg dot edu dot br>
* gst/qtdemux/qtdemux.c: (qtdemux_audio_caps):
Correctly distinguish 8bit vs 16bit raw audio.  Fixes #542410.
This commit is contained in:
Thiago Sousa Santos 2008-07-10 20:47:56 +00:00 committed by Mark Nauwelaerts
parent 2c11fa8bb6
commit a0bc9e69fe
2 changed files with 9 additions and 2 deletions

View file

@ -1,3 +1,10 @@
2008-07-10 Mark Nauwelaerts <mark.nauwelaerts@collabora.co.uk>
Patch by: Thiago Sousa Santos <thiagoss at lcc dot ufcg dot edu dot br>
* gst/qtdemux/qtdemux.c: (qtdemux_audio_caps):
Correctly distinguish 8bit vs 16bit raw audio. Fixes #542410.
2008-07-08 Mark Nauwelaerts <mark.nauwelaerts@collabora.co.uk>
* gst/qtdemux/qtdemux.c: (gst_qtdemux_add_stream),

View file

@ -4593,7 +4593,7 @@ qtdemux_audio_caps (GstQTDemux * qtdemux, QtDemuxStream * stream,
"width = (int) 8, " "depth = (int) 8, " "signed = (boolean) false");
break;
case GST_MAKE_FOURCC ('t', 'w', 'o', 's'):
if (stream->bytes_per_frame == 1) {
if (stream->bytes_per_sample == 1) {
_codec ("Raw 8-bit PCM audio");
caps = gst_caps_from_string ("audio/x-raw-int, "
"width = (int) 8, " "depth = (int) 8, " "signed = (boolean) true");
@ -4607,7 +4607,7 @@ qtdemux_audio_caps (GstQTDemux * qtdemux, QtDemuxStream * stream,
}
break;
case GST_MAKE_FOURCC ('s', 'o', 'w', 't'):
if (stream->bytes_per_frame == 1) {
if (stream->bytes_per_sample == 1) {
_codec ("Raw 8-bit PCM audio");
caps = gst_caps_from_string ("audio/x-raw-int, "
"width = (int) 8, " "depth = (int) 8, " "signed = (boolean) true");