mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-23 18:21:04 +00:00
qtmux: Allow negotiating to S8 as a raw format but stop making it best choice
Negotiation to audio/x-raw,format=S8 was not possible because S8 does not have a bit order so we ended up doing `if (!entry.fourcc) goto refuse_caps;` https://bugzilla.gnome.org/show_bug.cgi?id=756387
This commit is contained in:
parent
6bfee34b93
commit
ed079b9e74
2 changed files with 4 additions and 6 deletions
|
@ -3555,6 +3555,8 @@ gst_qt_mux_audio_sink_set_caps (GstQTPad * qtpad, GstCaps * caps)
|
|||
entry.fourcc = FOURCC_sowt;
|
||||
else if (info.finfo->endianness == G_BIG_ENDIAN)
|
||||
entry.fourcc = FOURCC_twos;
|
||||
else
|
||||
entry.fourcc = FOURCC_sowt;
|
||||
/* maximum backward compatibility; only new version for > 16 bit */
|
||||
if (info.finfo->depth <= 16)
|
||||
entry.version = 0;
|
||||
|
|
|
@ -97,15 +97,11 @@
|
|||
COMMON_AUDIO_CAPS (2, MAX)
|
||||
|
||||
#define PCM_CAPS_FULL \
|
||||
PCM_CAPS "; " \
|
||||
"audio/x-raw, " \
|
||||
"format = (string) { S24LE, S24BE }, " \
|
||||
"format = (string) { S32LE, S32BE, S24LE, S24BE }, " \
|
||||
"layout = (string) interleaved, " \
|
||||
COMMON_AUDIO_CAPS (2, MAX) "; " \
|
||||
"audio/x-raw, " \
|
||||
"format = (string) { S32LE, S32BE }, " \
|
||||
"layout = (string) interleaved, " \
|
||||
COMMON_AUDIO_CAPS (2, MAX)
|
||||
PCM_CAPS
|
||||
|
||||
#define MP3_CAPS \
|
||||
"audio/mpeg, " \
|
||||
|
|
Loading…
Reference in a new issue