h264parse: Post a WARNING when data is broken
This commit is contained in:
parent
4f6ac87f67
commit
475628c20e
@ -1313,6 +1313,8 @@ gst_h264_parse_handle_frame (GstBaseParse * parse,
|
|||||||
/* broken nal at start -> arrange to skip it,
|
/* broken nal at start -> arrange to skip it,
|
||||||
* otherwise have it terminate current au
|
* otherwise have it terminate current au
|
||||||
* (and so it will be skipped on next frame round) */
|
* (and so it will be skipped on next frame round) */
|
||||||
|
GST_ELEMENT_WARNING (h264parse, STREAM, DECODE,
|
||||||
|
(NULL), ("Broken bit stream"));
|
||||||
if (current_off == 0) {
|
if (current_off == 0) {
|
||||||
GST_DEBUG_OBJECT (h264parse, "skipping broken nal");
|
GST_DEBUG_OBJECT (h264parse, "skipping broken nal");
|
||||||
*skipsize = nalu.offset;
|
*skipsize = nalu.offset;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user