[0.10] gst-plugins-bad: h264parse: use the framerate that was copied a few lines above

Tim Müller tpm at kemper.freedesktop.org
Wed Jan 18 05:29:42 PST 2012


Module: gst-plugins-bad
Branch: 0.10
Commit: f2a153329087cef5c8231300376dca774bfcb604
URL:    http://cgit.freedesktop.org/gstreamer/gst-plugins-bad/commit/?id=f2a153329087cef5c8231300376dca774bfcb604

Author: Vincent Penquerc'h <vincent.penquerch at collabora.co.uk>
Date:   Mon Jan  9 11:03:24 2012 +0000

h264parse: use the framerate that was copied a few lines above

---

 gst/videoparsers/gsth264parse.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/gst/videoparsers/gsth264parse.c b/gst/videoparsers/gsth264parse.c
index 6d2422f..7c4ee7d 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);
     }
   }
 



More information about the gstreamer-commits mailing list