diff options
-rw-r--r-- | 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 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; |