[libav-commits] h264: Discard currently unsupported registered sei

John Högberg git at libav.org
Fri Aug 21 12:03:39 CEST 2015


Module: libav
Branch: master
Commit: f9ab4fe1f7c1e9d410ca5ee2c9ff8d2892aad068

Author:    John Högberg <john.hogberg at ericsson.com>
Committer: Luca Barbato <lu_zero at gentoo.org>
Date:      Fri Aug  7 19:30:38 2015 +0000

h264: Discard currently unsupported registered sei

Signed-off-by: Luca Barbato <lu_zero at gentoo.org>

---

 libavcodec/h264_sei.c |    6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/libavcodec/h264_sei.c b/libavcodec/h264_sei.c
index 8b07682..361d4de 100644
--- a/libavcodec/h264_sei.c
+++ b/libavcodec/h264_sei.c
@@ -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;



More information about the libav-commits mailing list