diff options
author | Sebastian Dröge <sebastian.droege@collabora.co.uk> | 2009-02-21 16:09:27 +0100 |
---|---|---|
committer | Sebastian Dröge <sebastian.droege@collabora.co.uk> | 2009-02-21 16:16:32 +0100 |
commit | a9461b981836138b091ac3402ea69e2e65ca78de (patch) | |
tree | 7808da5879c3607832346309f0752d195547c4ea /gst/mxf | |
parent | 636b535e4ae741bcf5010fead6357c7138468404 (diff) | |
download | gst-plugins-bad-a9461b981836138b091ac3402ea69e2e65ca78de.tar.gz gst-plugins-bad-a9461b981836138b091ac3402ea69e2e65ca78de.tar.bz2 gst-plugins-bad-a9461b981836138b091ac3402ea69e2e65ca78de.zip |
mxfdemux: Fix calculation of AES3 bitrate tag
Diffstat (limited to 'gst/mxf')
-rw-r--r-- | gst/mxf/mxfaes-bwf.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/gst/mxf/mxfaes-bwf.c b/gst/mxf/mxfaes-bwf.c index d2be9a26..364cfb7f 100644 --- a/gst/mxf/mxfaes-bwf.c +++ b/gst/mxf/mxfaes-bwf.c @@ -781,7 +781,10 @@ mxf_aes3_create_caps (MXFMetadataTimelineTrack * track, *tags = gst_tag_list_new (); gst_tag_list_add (*tags, GST_TAG_MERGE_APPEND, GST_TAG_AUDIO_CODEC, - codec_name, GST_TAG_BITRATE, block_align * 8, NULL); + codec_name, GST_TAG_BITRATE, + (gint) (block_align * 8 * + mxf_fraction_to_double (&descriptor->audio_sampling_rate)) / + (descriptor->channel_count), NULL); g_free (codec_name); *handler = mxf_aes3_handle_essence_element; |