h264: Discard currently unsupported registered sei
authorJohn Högberg <john.hogberg@ericsson.com>
Fri, 7 Aug 2015 19:30:38 +0000 (19:30 +0000)
committerLuca Barbato <lu_zero@gentoo.org>
Fri, 21 Aug 2015 10:03:36 +0000 (12:03 +0200)
Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
libavcodec/h264_sei.c

index 8b07682..361d4de 100644 (file)
@@ -169,6 +169,12 @@ static int decode_registered_user_data_closed_caption(H264Context *h, int size)
                 skip_bits(&h->gb, 8);   // marker_bits
             }
         }
+    } else {
+        int i;
+        avpriv_request_sample("Subtitles with data type 0x%02x",
+                              user_data_type_code);
+        for (i = 0; i < size - 1; i++)
+            skip_bits(&h->gb, 8);
     }
 
     return 0;