h264parse: Post a WARNING when data is broken

This commit is contained in:
Thibault Saunier 2019-05-31 10:12:54 -04:00 committed by Nicolas Dufresne
parent 4f6ac87f67
commit 475628c20e

View file

@ -1313,6 +1313,8 @@ gst_h264_parse_handle_frame (GstBaseParse * parse,
/* broken nal at start -> arrange to skip it,
* otherwise have it terminate current au
* (and so it will be skipped on next frame round) */
GST_ELEMENT_WARNING (h264parse, STREAM, DECODE,
(NULL), ("Broken bit stream"));
if (current_off == 0) {
GST_DEBUG_OBJECT (h264parse, "skipping broken nal");
*skipsize = nalu.offset;