summaryrefslogtreecommitdiff
path: root/gst/videoparsers/gsth263parse.c
diff options
context:
space:
mode:
authorMark Nauwelaerts <mark.nauwelaerts@collabora.co.uk>2011-05-24 21:50:52 +0200
committerMark Nauwelaerts <mark.nauwelaerts@collabora.co.uk>2011-05-25 21:51:55 +0200
commit89f87d70a8ca1e121be5f525f2bd34c8d211d170 (patch)
tree933973ba0c7a87f286b3cc4cf6222b1a67eddef0 /gst/videoparsers/gsth263parse.c
parent288e001e1f232713e5618424ce27af95266bdd10 (diff)
downloadgstreamer-plugins-bad-89f87d70a8ca1e121be5f525f2bd34c8d211d170.tar.gz
h263parse: also extract width and height into caps
Diffstat (limited to 'gst/videoparsers/gsth263parse.c')
-rw-r--r--gst/videoparsers/gsth263parse.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/gst/videoparsers/gsth263parse.c b/gst/videoparsers/gsth263parse.c
index 77bbba90a..877c75e44 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),