mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-28 19:20:35 +00:00
mxfaes-bwf: Format is unsigned if it's 1 byte per channel
... not 1 byte per block.
This commit is contained in:
parent
ec319bb9d2
commit
5d7367ef47
1 changed files with 6 additions and 4 deletions
|
@ -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,
|
||||
|
|
Loading…
Reference in a new issue