summaryrefslogtreecommitdiff
path: root/gst/mxf/mxfaes-bwf.c
diff options
context:
space:
mode:
authorSebastian Dröge <sebastian.droege@collabora.co.uk>2009-02-21 16:09:27 +0100
committerSebastian Dröge <sebastian.droege@collabora.co.uk>2009-02-21 16:16:32 +0100
commita9461b981836138b091ac3402ea69e2e65ca78de (patch)
tree7808da5879c3607832346309f0752d195547c4ea /gst/mxf/mxfaes-bwf.c
parent636b535e4ae741bcf5010fead6357c7138468404 (diff)
downloadgstreamer-plugins-bad-a9461b981836138b091ac3402ea69e2e65ca78de.tar.gz
mxfdemux: Fix calculation of AES3 bitrate tag
Diffstat (limited to 'gst/mxf/mxfaes-bwf.c')
-rw-r--r--gst/mxf/mxfaes-bwf.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/gst/mxf/mxfaes-bwf.c b/gst/mxf/mxfaes-bwf.c
index d2be9a260..364cfb7fe 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;