summaryrefslogtreecommitdiffstats
path: root/libavcodec/h264_sei.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2014-09-16 03:57:00 +0200
committerMichael Niedermayer <michaelni@gmx.at>2014-09-16 04:07:22 +0200
commit688a40b4ed7d2e07d3f96c2feecf785a4866e60c (patch)
tree5914a2c5088e808547fe981b740b6b3fb4e1a836 /libavcodec/h264_sei.c
parentaaeae281a898f556b7b7d71a33761502949a20c3 (diff)
downloadffmpeg-streaming-688a40b4ed7d2e07d3f96c2feecf785a4866e60c.zip
ffmpeg-streaming-688a40b4ed7d2e07d3f96c2feecf785a4866e60c.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>
Diffstat (limited to 'libavcodec/h264_sei.c')
-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 aa889b8..8e1697a 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;
OpenPOWER on IntegriCloud