summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMark Nauwelaerts <mark.nauwelaerts@collabora.co.uk>2012-01-03 20:23:16 +0100
committerTim-Philipp Müller <tim.muller@collabora.co.uk>2012-01-04 17:31:00 +0000
commit7a47ea2c453594d22fd67ce682d051ea1ef43cd7 (patch)
tree767cc04557d7ad0c6cf39eedb19a5f7125e36c24
parente2513f38ea6686f3e454bb8751c9be7ae436c557 (diff)
h264parse: properly determine skip amount when no NAL start found yet
-rw-r--r--gst/videoparsers/gsth264parse.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/gst/videoparsers/gsth264parse.c b/gst/videoparsers/gsth264parse.c
index e45c6483a..f835dc65d 100644
--- a/gst/videoparsers/gsth264parse.c
+++ b/gst/videoparsers/gsth264parse.c
@@ -670,7 +670,9 @@ gst_h264_parse_check_valid_frame (GstBaseParse * parse,
current_off = size - 3;
goto parsing_error;
case GST_H264_PARSER_NO_NAL:
- current_off = size - 3;
+ /* don't expect to have found any NAL so far */
+ g_assert (h264parse->nalu.size == 0);
+ current_off = h264parse->nalu.sc_offset = size - 3;
goto more;
case GST_H264_PARSER_BROKEN_DATA:
GST_WARNING_OBJECT (h264parse, "input stream is corrupt; "