summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSebastian Dröge <sebastian.droege@collabora.co.uk>2009-02-21 17:40:01 +0100
committerSebastian Dröge <sebastian.droege@collabora.co.uk>2009-02-21 17:40:01 +0100
commita0951a630bcc17a619519e4dbb02516cc3032726 (patch)
treef75e1df59365078617cc0a926ac4b66b2e73613b
parentacc6a316ce333eb3b28975e5fcfe678a704dc1f4 (diff)
downloadgst-plugins-bad-a0951a630bcc17a619519e4dbb02516cc3032726.tar.gz
gst-plugins-bad-a0951a630bcc17a619519e4dbb02516cc3032726.tar.bz2
gst-plugins-bad-a0951a630bcc17a619519e4dbb02516cc3032726.zip
mxfdemux: Add MPEG video bitrate to the tags if available
-rw-r--r--gst/mxf/mxfmpeg.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/gst/mxf/mxfmpeg.c b/gst/mxf/mxfmpeg.c
index da287de8..c0ed1d29 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;