summaryrefslogtreecommitdiffstats
path: root/gst/mxf/mxfparse.c
diff options
context:
space:
mode:
authorSebastian Dröge <slomo@circular-chaos.org>2008-11-29 20:25:06 +0000
committerSebastian Dröge <slomo@circular-chaos.org>2008-11-29 20:25:06 +0000
commit70281aa4e47aed8ce26eddd3cfb965f7320a7347 (patch)
treefc526549893e04333577969cdf974c40c25a62d4 /gst/mxf/mxfparse.c
parentcf877b2d4f532c93076f8e302440ebf94017830e (diff)
downloadgst-plugins-bad-70281aa4e47aed8ce26eddd3cfb965f7320a7347.tar.gz
gst-plugins-bad-70281aa4e47aed8ce26eddd3cfb965f7320a7347.tar.bz2
gst-plugins-bad-70281aa4e47aed8ce26eddd3cfb965f7320a7347.zip
gst/mxf/: Add initial support for JPEG2000 encoded video essence.
Original commit message from CVS: * gst/mxf/Makefile.am: * gst/mxf/mxfdemux.c: (gst_mxf_demux_handle_header_metadata_update_streams): * gst/mxf/mxfjpeg2000.c: (mxf_is_jpeg2000_video_essence_track), (mxf_jpeg2000_handle_essence_element), (mxf_jpeg2000_create_caps): * gst/mxf/mxfjpeg2000.h: Add initial support for JPEG2000 encoded video essence. * gst/mxf/mxfparse.c: (mxf_metadata_generic_picture_essence_descriptor_set_caps): Set the framerate in the video caps.
Diffstat (limited to 'gst/mxf/mxfparse.c')
-rw-r--r--gst/mxf/mxfparse.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/gst/mxf/mxfparse.c b/gst/mxf/mxfparse.c
index ba6d9691..22efb333 100644
--- a/gst/mxf/mxfparse.c
+++ b/gst/mxf/mxfparse.c
@@ -2582,10 +2582,14 @@ void mxf_metadata_generic_picture_essence_descriptor_set_caps
{
guint par_n, par_d;
guint width, height;
+ MXFMetadataFileDescriptor *f = (MXFMetadataFileDescriptor *) descriptor;
g_return_if_fail (descriptor != NULL);
g_return_if_fail (GST_IS_CAPS (caps));
+ gst_caps_set_simple (caps, "framerate", GST_TYPE_FRACTION, f->sample_rate.n,
+ f->sample_rate.d, NULL);
+
width = descriptor->stored_width;
height = descriptor->stored_height;