[gst-cvs] gst-plugins-bad: mxfdemux: Add MPEG video bitrate to the tags if available
Sebastian Dröge
slomo at kemper.freedesktop.org
Sat Feb 21 08:45:37 PST 2009
Module: gst-plugins-bad
Branch: master
Commit: a0951a630bcc17a619519e4dbb02516cc3032726
URL: http://cgit.freedesktop.org/gstreamer/gst-plugins-bad/commit/?id=a0951a630bcc17a619519e4dbb02516cc3032726
Author: Sebastian Dröge <sebastian.droege at collabora.co.uk>
Date: Sat Feb 21 17:40:01 2009 +0100
mxfdemux: Add MPEG video bitrate to the tags if available
---
gst/mxf/mxfmpeg.c | 6 ++++++
1 files changed, 6 insertions(+), 0 deletions(-)
diff --git a/gst/mxf/mxfmpeg.c b/gst/mxf/mxfmpeg.c
index da287de..c0ed1d2 100644
--- a/gst/mxf/mxfmpeg.c
+++ b/gst/mxf/mxfmpeg.c
@@ -623,6 +623,12 @@ mxf_mpeg_es_create_caps (MXFMetadataTimelineTrack * track, GstTagList ** tags,
if (codec_name)
gst_tag_list_add (*tags, GST_TAG_MERGE_APPEND, GST_TAG_VIDEO_CODEC,
codec_name, NULL);
+
+ if (p && MXF_IS_METADATA_MPEG_VIDEO_DESCRIPTOR (p)
+ && MXF_METADATA_MPEG_VIDEO_DESCRIPTOR (p)->bitrate) {
+ gst_tag_list_add (*tags, GST_TAG_MERGE_APPEND, GST_TAG_BITRATE,
+ MXF_METADATA_MPEG_VIDEO_DESCRIPTOR (p)->bitrate, NULL);
+ }
}
return caps;
More information about the Gstreamer-commits
mailing list