diff options
author | Mark Nauwelaerts <mark.nauwelaerts@collabora.co.uk> | 2012-01-03 20:23:16 +0100 |
---|---|---|
committer | Mark Nauwelaerts <mark.nauwelaerts@collabora.co.uk> | 2012-01-03 20:27:07 +0100 |
commit | 75b8ddb6cf440d71d939722da6ff43f3bcd44f9b (patch) | |
tree | 1929e0c7663150167894aa48ffc0a3a2edc50ad7 /gst/videoparsers/gsth264parse.c | |
parent | c54144cc16849907dc5a73b0e671d3c272c5c7ae (diff) | |
download | gstreamer-plugins-bad-75b8ddb6cf440d71d939722da6ff43f3bcd44f9b.tar.gz |
h264parse: properly determine skip amount when no NAL start found yet
Diffstat (limited to 'gst/videoparsers/gsth264parse.c')
-rw-r--r-- | gst/videoparsers/gsth264parse.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/gst/videoparsers/gsth264parse.c b/gst/videoparsers/gsth264parse.c index 38561bf09..e9ea858c2 100644 --- a/gst/videoparsers/gsth264parse.c +++ b/gst/videoparsers/gsth264parse.c @@ -686,7 +686,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; " |