h264parse: Post a WARNING when data is broken
authorThibault Saunier <tsaunier@igalia.com>
Fri, 31 May 2019 14:12:54 +0000 (10:12 -0400)
committerNicolas Dufresne <nicolas@ndufresne.ca>
Sat, 15 Jun 2019 23:13:43 +0000 (23:13 +0000)
gst/videoparsers/gsth264parse.c

index 41a31ea..fa64671 100644 (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;