summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSebastian Dröge <slomo@circular-chaos.org>2008-01-14 10:52:20 +0000
committerSebastian Dröge <slomo@circular-chaos.org>2008-01-14 10:52:20 +0000
commit92c780879605a52da6cd338af22f935cfca8feb1 (patch)
tree7ca0138f2a1a1c7c4d4408a79da03bbd30434b41
parentd28bfa3d09ab1e81f221e9107560fcc2b10bcb20 (diff)
downloadgst-plugins-bad-92c780879605a52da6cd338af22f935cfca8feb1.tar.gz
gst-plugins-bad-92c780879605a52da6cd338af22f935cfca8feb1.tar.bz2
gst-plugins-bad-92c780879605a52da6cd338af22f935cfca8feb1.zip
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.
-rw-r--r--ChangeLog6
-rw-r--r--gst/xingheader/gstxingmux.c4
2 files changed, 8 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog
index e155bc5f..fd843172 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,6 +1,12 @@
2008-01-14 Sebastian Dröge <slomo@circular-chaos.org>
* gst/xingheader/gstxingmux.c: (generate_xing_header):
+ Bitrate is 4 bits, not 8 so check for 0xe as maximum value instead
+ of 0xfe.
+
+2008-01-14 Sebastian Dröge <slomo@circular-chaos.org>
+
+ * gst/xingheader/gstxingmux.c: (generate_xing_header):
Remove accidentially leftover debug printf.
2008-01-14 Sebastian Dröge <slomo@circular-chaos.org>
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;
}