From 5d7367ef47a582ce7161043e81c13aac5f7ab35e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20Dr=C3=B6ge?= Date: Wed, 21 Oct 2015 00:45:19 +0300 Subject: [PATCH] mxfaes-bwf: Format is unsigned if it's 1 byte per channel ... not 1 byte per block. --- gst/mxf/mxfaes-bwf.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/gst/mxf/mxfaes-bwf.c b/gst/mxf/mxfaes-bwf.c index 76499735af..633f3affbc 100644 --- a/gst/mxf/mxfaes-bwf.c +++ b/gst/mxf/mxfaes-bwf.c @@ -1266,7 +1266,8 @@ mxf_bwf_create_caps (MXFMetadataTimelineTrack * track, descriptor->channel_count) / 8; audio_format = - gst_audio_format_build_integer (block_align != 1, G_LITTLE_ENDIAN, + gst_audio_format_build_integer (block_align != + descriptor->channel_count, G_LITTLE_ENDIAN, (block_align / descriptor->channel_count) * 8, (block_align / descriptor->channel_count) * 8); ret = @@ -1297,7 +1298,8 @@ mxf_bwf_create_caps (MXFMetadataTimelineTrack * track, descriptor->channel_count) / 8; audio_format = - gst_audio_format_build_integer (block_align != 1, G_BIG_ENDIAN, + gst_audio_format_build_integer (block_align != + descriptor->channel_count, G_BIG_ENDIAN, (block_align / descriptor->channel_count) * 8, (block_align / descriptor->channel_count) * 8); ret = @@ -1374,8 +1376,8 @@ mxf_aes3_create_caps (MXFMetadataTimelineTrack * track, descriptor->channel_count) / 8; audio_format = - gst_audio_format_build_integer (block_align != 1, G_LITTLE_ENDIAN, - (block_align / descriptor->channel_count) * 8, + gst_audio_format_build_integer (block_align != descriptor->channel_count, + G_LITTLE_ENDIAN, (block_align / descriptor->channel_count) * 8, (block_align / descriptor->channel_count) * 8); ret = mxf_metadata_generic_sound_essence_descriptor_create_caps (descriptor,