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:
Thibault Saunier 2015-10-11 12:06:26 +01:00
parent 6bfee34b93
commit ed079b9e74
2 changed files with 4 additions and 6 deletions

View file

@ -3555,6 +3555,8 @@ gst_qt_mux_audio_sink_set_caps (GstQTPad * qtpad, GstCaps * caps)
entry.fourcc = FOURCC_sowt; entry.fourcc = FOURCC_sowt;
else if (info.finfo->endianness == G_BIG_ENDIAN) else if (info.finfo->endianness == G_BIG_ENDIAN)
entry.fourcc = FOURCC_twos; entry.fourcc = FOURCC_twos;
else
entry.fourcc = FOURCC_sowt;
/* maximum backward compatibility; only new version for > 16 bit */ /* maximum backward compatibility; only new version for > 16 bit */
if (info.finfo->depth <= 16) if (info.finfo->depth <= 16)
entry.version = 0; entry.version = 0;

View file

@ -97,15 +97,11 @@
COMMON_AUDIO_CAPS (2, MAX) COMMON_AUDIO_CAPS (2, MAX)
#define PCM_CAPS_FULL \ #define PCM_CAPS_FULL \
PCM_CAPS "; " \
"audio/x-raw, " \ "audio/x-raw, " \
"format = (string) { S24LE, S24BE }, " \ "format = (string) { S32LE, S32BE, S24LE, S24BE }, " \
"layout = (string) interleaved, " \ "layout = (string) interleaved, " \
COMMON_AUDIO_CAPS (2, MAX) "; " \ COMMON_AUDIO_CAPS (2, MAX) "; " \
"audio/x-raw, " \ PCM_CAPS
"format = (string) { S32LE, S32BE }, " \
"layout = (string) interleaved, " \
COMMON_AUDIO_CAPS (2, MAX)
#define MP3_CAPS \ #define MP3_CAPS \
"audio/mpeg, " \ "audio/mpeg, " \