aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2014-09-16 03:57:00 +0200
committerCarl Eugen Hoyos <cehoyos@ag.or.at>2014-11-05 10:13:26 +0100
commita5cc8775cf1d276189a22a244f3e487782a36fd4 (patch)
treea9ea342cfaa82597bff3061c3b8c5a1abb959692 /libavcodec
parentf9ca1fecb0fdd427634cfeed4389e7f2a184ef7a (diff)
downloadffmpeg-a5cc8775cf1d276189a22a244f3e487782a36fd4.tar.gz
avcodec/h264_sei: ff_h264_decode_sei: dont try to parse trailing zeroes
reduces noise for tserrors.ts Signed-off-by: Michael Niedermayer <michaelni@gmx.at> (cherry picked from commit 688a40b4ed7d2e07d3f96c2feecf785a4866e60c)
Diffstat (limited to 'libavcodec')
-rw-r--r--libavcodec/h264_sei.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/h264_sei.c b/libavcodec/h264_sei.c
index aa889b8bba..8e1697a31e 100644
--- a/libavcodec/h264_sei.c
+++ b/libavcodec/h264_sei.c
@@ -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;