[0.11] gst-plugins-bad: h264parse: correct the size argument of gst_h264_parser_identify_nalu_avc()

Wim Taymans wtay at kemper.freedesktop.org
Thu Oct 6 05:06:04 PDT 2011


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

Author: Sreerenj Balachandran <sreerenj.balachandran at intel.com>
Date:   Wed Oct  5 23:14:23 2011 +0300

h264parse: correct the size argument of gst_h264_parser_identify_nalu_avc()

---

 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 6e45639..e45ff0c 100644
--- a/gst/videoparsers/gsth264parse.c
+++ b/gst/videoparsers/gsth264parse.c
@@ -1248,7 +1248,7 @@ gst_h264_parse_set_caps (GstBaseParse * parse, GstCaps * caps)
     off = 6;
     for (i = 0; i < num_sps; i++) {
       parseres = gst_h264_parser_identify_nalu_avc (h264parse->nalparser,
-          data, off, size - off, 2, &nalu);
+          data, off, size, 2, &nalu);
       if (parseres != GST_H264_PARSER_OK)
         goto avcc_too_small;
 
@@ -1261,7 +1261,7 @@ gst_h264_parse_set_caps (GstBaseParse * parse, GstCaps * caps)
     size++;
     for (i = 0; i < num_pps; i++) {
       parseres = gst_h264_parser_identify_nalu_avc (h264parse->nalparser,
-          data, off, size - off, 2, &nalu);
+          data, off, size, 2, &nalu);
       if (parseres != GST_H264_PARSER_OK) {
         goto avcc_too_small;
       }



More information about the gstreamer-commits mailing list