mxfaes-bwf: Format is unsigned if it's 1 byte per channel

... not 1 byte per block.
This commit is contained in:
Sebastian Dröge 2015-10-21 00:45:19 +03:00
parent ec319bb9d2
commit 5d7367ef47

View file

@ -1266,7 +1266,8 @@ mxf_bwf_create_caps (MXFMetadataTimelineTrack * track,
descriptor->channel_count) / 8; descriptor->channel_count) / 8;
audio_format = 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,
(block_align / descriptor->channel_count) * 8); (block_align / descriptor->channel_count) * 8);
ret = ret =
@ -1297,7 +1298,8 @@ mxf_bwf_create_caps (MXFMetadataTimelineTrack * track,
descriptor->channel_count) / 8; descriptor->channel_count) / 8;
audio_format = 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,
(block_align / descriptor->channel_count) * 8); (block_align / descriptor->channel_count) * 8);
ret = ret =
@ -1374,8 +1376,8 @@ mxf_aes3_create_caps (MXFMetadataTimelineTrack * track,
descriptor->channel_count) / 8; descriptor->channel_count) / 8;
audio_format = audio_format =
gst_audio_format_build_integer (block_align != 1, G_LITTLE_ENDIAN, gst_audio_format_build_integer (block_align != descriptor->channel_count,
(block_align / descriptor->channel_count) * 8, G_LITTLE_ENDIAN, (block_align / descriptor->channel_count) * 8,
(block_align / descriptor->channel_count) * 8); (block_align / descriptor->channel_count) * 8);
ret = ret =
mxf_metadata_generic_sound_essence_descriptor_create_caps (descriptor, mxf_metadata_generic_sound_essence_descriptor_create_caps (descriptor,