]> git.sesse.net Git - ffmpeg/commitdiff
avcodec/h264_sei: ff_h264_decode_sei: dont try to parse trailing zeroes
authorMichael Niedermayer <michaelni@gmx.at>
Tue, 16 Sep 2014 01:57:00 +0000 (03:57 +0200)
committerMichael Niedermayer <michaelni@gmx.at>
Tue, 16 Sep 2014 02:07:22 +0000 (04:07 +0200)
reduces noise for tserrors.ts

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavcodec/h264_sei.c

index aa889b8bba369b9a13acb081b6b40676ff8cf7c3..8e1697a31e4910cdac9efc8e825a869bf73bd914 100644 (file)
@@ -281,7 +281,7 @@ static int decode_display_orientation(H264Context *h)
 
 int ff_h264_decode_sei(H264Context *h)
 {
-    while (get_bits_left(&h->gb) > 16) {
+    while (get_bits_left(&h->gb) > 16 && show_bits(&h->gb, 16)) {
         int type = 0;
         unsigned size = 0;
         unsigned next;