From 2dc41db862ec8fe6ab361b0a066cd71e1c71b44d Mon Sep 17 00:00:00 2001 From: Vincent Penquerc'h Date: Mon, 9 Jan 2012 11:03:24 +0000 Subject: [PATCH] h264parse: use the framerate that was copied a few lines above --- gst/videoparsers/gsth264parse.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gst/videoparsers/gsth264parse.c b/gst/videoparsers/gsth264parse.c index 05a5bab..2e4da48 100644 --- a/gst/videoparsers/gsth264parse.c +++ b/gst/videoparsers/gsth264parse.c @@ -1060,9 +1060,9 @@ gst_h264_parse_update_src_caps (GstH264Parse * h264parse, GstCaps * caps) gst_caps_set_simple (caps, "width", G_TYPE_INT, sps->width, "height", G_TYPE_INT, sps->height, NULL); /* but not necessarily or reliably this */ - if (sps->fps_num > 0 && sps->fps_den > 0) + if (h264parse->fps_num > 0 && h264parse->fps_den > 0) gst_caps_set_simple (caps, "framerate", - GST_TYPE_FRACTION, sps->fps_num, sps->fps_den, NULL); + GST_TYPE_FRACTION, h264parse->fps_num, h264parse->fps_den, NULL); } } -- 2.7.4