From: Mark Nauwelaerts Date: Tue, 24 May 2011 19:50:52 +0000 (+0200) Subject: h263parse: also extract width and height into caps X-Git-Tag: 1.19.3~507^2~16050^2~101 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=89f87d70a8ca1e121be5f525f2bd34c8d211d170;p=platform%2Fupstream%2Fgstreamer.git h263parse: also extract width and height into caps --- diff --git a/gst/videoparsers/gsth263parse.c b/gst/videoparsers/gsth263parse.c index 77bbba90a4..877c75e44f 100644 --- a/gst/videoparsers/gsth263parse.c +++ b/gst/videoparsers/gsth263parse.c @@ -209,6 +209,10 @@ gst_h263_parse_set_src_caps (GstH263Parse * h263parse, gst_caps_set_simple (caps, "framerate", GST_TYPE_FRACTION, fr_num, fr_denom, NULL); + if (params->width && params->height) + gst_caps_set_simple (caps, "width", G_TYPE_INT, params->width, + "height", G_TYPE_INT, params->height, NULL); + if (h263parse->state == GOT_HEADER) { gst_caps_set_simple (caps, "annex-d", G_TYPE_BOOLEAN, (params->features & H263_OPTION_UMV_MODE), diff --git a/gst/videoparsers/h263parse.c b/gst/videoparsers/h263parse.c index 1fdf22316b..09cbbd4f36 100644 --- a/gst/videoparsers/h263parse.c +++ b/gst/videoparsers/h263parse.c @@ -142,6 +142,8 @@ gst_h263_parse_get_params (H263Params * params, GstBuffer * buffer, /* Fill in width/height based on format */ params->width = sizetable[params->format][0]; params->height = sizetable[params->format][1]; + GST_DEBUG (" Picture width x height: %d x %d", + params->width, params->height); /* Default PAR is 12/11 */ params->parnum = 12;