summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVincent Penquerc'h <vincent.penquerch@collabora.co.uk>2012-01-09 11:03:24 +0000
committerTim-Philipp Müller <tim.muller@collabora.co.uk>2012-01-18 12:29:26 +0000
commitf2a153329087cef5c8231300376dca774bfcb604 (patch)
treee4b3feb1e20b7c808a7b5cbd48eb664917226be5
parentf4223d4de268937c89428a4c2e2678edb6f6e781 (diff)
h264parse: use the framerate that was copied a few lines above
-rw-r--r--gst/videoparsers/gsth264parse.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gst/videoparsers/gsth264parse.c b/gst/videoparsers/gsth264parse.c
index 6d2422f23..7c4ee7d48 100644
--- a/gst/videoparsers/gsth264parse.c
+++ b/gst/videoparsers/gsth264parse.c
@@ -1044,9 +1044,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);
}
}