mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-04-08 00:59:48 +00:00
audioconvert: Also ignore the SIGNED flag when matching an output format
This commit is contained in:
parent
c286f8ffa2
commit
bc4389806d
1 changed files with 2 additions and 0 deletions
|
@ -460,6 +460,7 @@ gst_audio_convert_fixate_format (GstBaseTransform * base, GstStructure * ins,
|
|||
|
||||
in_flags = GST_AUDIO_FORMAT_INFO_FLAGS (in_info);
|
||||
in_flags &= ~(GST_AUDIO_FORMAT_FLAG_UNPACK);
|
||||
in_flags &= ~(GST_AUDIO_FORMAT_FLAG_SIGNED);
|
||||
|
||||
if (GST_VALUE_HOLDS_LIST (format)) {
|
||||
gint i, len;
|
||||
|
@ -482,6 +483,7 @@ gst_audio_convert_fixate_format (GstBaseTransform * base, GstStructure * ins,
|
|||
break;
|
||||
out_flags = GST_AUDIO_FORMAT_INFO_FLAGS (t_info);
|
||||
out_flags &= ~(GST_AUDIO_FORMAT_FLAG_UNPACK);
|
||||
out_flags &= ~(GST_AUDIO_FORMAT_FLAG_SIGNED);
|
||||
/* or another format without losing precision */
|
||||
if (in_flags == out_flags) {
|
||||
if (GST_AUDIO_FORMAT_INFO_DEPTH (t_info) ==
|
||||
|
|
Loading…
Reference in a new issue