mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-09-08 21:28:45 +00:00
qtdemux: tweak wam support
... with some comment and portability macros.
This commit is contained in:
parent
293e6a61b4
commit
19b87dbdbe
1 changed files with 7 additions and 4 deletions
|
@ -6353,6 +6353,8 @@ qtdemux_parse_trak (GstQTDemux * qtdemux, GNode * trak)
|
|||
GstBuffer *buf;
|
||||
gint version = 1;
|
||||
/* from http://msdn.microsoft.com/en-us/library/dd757720(VS.85).aspx */
|
||||
/* FIXME this should also be gst_riff_strf_auds,
|
||||
* but the latter one is actually missing bits-per-sample :( */
|
||||
typedef struct
|
||||
{
|
||||
gint16 wFormatTag;
|
||||
|
@ -6394,10 +6396,11 @@ qtdemux_parse_trak (GstQTDemux * qtdemux, GNode * trak)
|
|||
gst_caps_set_simple (stream->caps,
|
||||
"codec_data", GST_TYPE_BUFFER, buf,
|
||||
"wmaversion", G_TYPE_INT, version,
|
||||
"block_align", G_TYPE_INT, wfex->nBlockAlign,
|
||||
"bitrate", G_TYPE_INT, wfex->nAvgBytesPerSec,
|
||||
"width", G_TYPE_INT, wfex->wBitsPerSample,
|
||||
"depth", G_TYPE_INT, wfex->wBitsPerSample, NULL);
|
||||
"block_align", G_TYPE_INT, GST_READ_UINT16_LE (&wfex->nBlockAlign),
|
||||
"bitrate", G_TYPE_INT, GST_READ_UINT32_LE (&wfex->nAvgBytesPerSec),
|
||||
"width", G_TYPE_INT, GST_READ_UINT16_LE (&wfex->wBitsPerSample),
|
||||
"depth", G_TYPE_INT, GST_READ_UINT16_LE (&wfex->wBitsPerSample),
|
||||
NULL);
|
||||
gst_buffer_unref (buf);
|
||||
|
||||
if (codec_name) {
|
||||
|
|
Loading…
Reference in a new issue