From 92c780879605a52da6cd338af22f935cfca8feb1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20Dr=C3=B6ge?= Date: Mon, 14 Jan 2008 10:52:20 +0000 Subject: gst/xingheader/gstxingmux.c: Bitrate is 4 bits, not 8 so check for 0xe as maximum value instead of 0xfe. Original commit message from CVS: * gst/xingheader/gstxingmux.c: (generate_xing_header): Bitrate is 4 bits, not 8 so check for 0xe as maximum value instead of 0xfe. --- gst/xingheader/gstxingmux.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'gst/xingheader') diff --git a/gst/xingheader/gstxingmux.c b/gst/xingheader/gstxingmux.c index 2a46fc6a..76f11ec8 100644 --- a/gst/xingheader/gstxingmux.c +++ b/gst/xingheader/gstxingmux.c @@ -236,9 +236,9 @@ generate_xing_header (GstXingMux * xing) parse_header (header, &size, &spf, &rate); xing_offset = get_xing_offset (header); - } while (size < (4 + xing_offset + 4 + 4 + 4 + 4 + 100) && bitrate < 0xfe); + } while (size < (4 + xing_offset + 4 + 4 + 4 + 4 + 100) && bitrate < 0xe); - if (bitrate == 0xfe) { + if (bitrate == 0xe) { GST_ERROR ("No usable bitrate found!"); return NULL; } -- cgit v1.2.1