From 70281aa4e47aed8ce26eddd3cfb965f7320a7347 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20Dr=C3=B6ge?= Date: Sat, 29 Nov 2008 20:25:06 +0000 Subject: 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. --- gst/mxf/mxfparse.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'gst/mxf/mxfparse.c') 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; -- cgit v1.2.1