Commit a0bc9e69 authored by Thiago Sousa Santos's avatar Thiago Sousa Santos Committed by Mark Nauwelaerts
Browse files

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.
parent 2c11fa8b
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),
......
......@@ -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");
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment