2006-06-02 Michael Smith <msmith@fluendo.com>
+ * ext/vorbis/vorbisdec.c: (vorbis_handle_identification_packet):
+ Don't arbitrarily restrict channel counts and rate in vorbis.
+ In terms of effects likely on real-world files, this fixes 96kHz
+ playback of vorbis.
+
+2006-06-02 Michael Smith <msmith@fluendo.com>
+
* gst/audioconvert/audioconvert.c: (float):
More correct float->int conversion.
GST_PAD_SRC,
GST_PAD_ALWAYS,
GST_STATIC_CAPS ("audio/x-raw-float, "
- "rate = (int) [ 8000, 50000 ], "
- "channels = (int) [ 1, 6 ], " "endianness = (int) BYTE_ORDER, "
+ "rate = (int) [ 1, MAX ], "
+ "channels = (int) [ 1, 256 ], " "endianness = (int) BYTE_ORDER, "
/* no ifdef in macros, please
#ifdef GST_VORBIS_DEC_SEQUENTIAL
"layout = \"sequential\", "
pos = pos6;
break;
}
- default:
- goto channel_count_error;
}
caps = gst_caps_new_simple ("audio/x-raw-float",
gst_caps_unref (caps);
return GST_FLOW_OK;
-
- /* ERROR */
-channel_count_error:
- {
- GST_ELEMENT_ERROR (vd, STREAM, NOT_IMPLEMENTED, (NULL),
- ("Unsupported channel count %d", vd->vi.channels));
- return GST_FLOW_ERROR;
- }
}
static GstFlowReturn