[FFmpeg-devel] [BUG, PATCH] Fix broken put_bits32() little-endian usage

Philipp Matthias Hahn pmhahn
Sat Nov 28 18:52:40 CET 2009


Fix commit 20124: Fix broken put_bits32() little endian use by vorbis_enc.c

There is no such define of ALT_BITSTREAM_WRITER_LE, only BITSTREAM_WRITER_LE.
vorbis_enc.c is the only Little-Endian user of put_bits32(), which swaps all 32
bit values.
--- libavcodec/put_bits.h	(Revision 20640)
+++ libavcodec/put_bits.h	(Arbeitskopie)
@@ -270,7 +270,7 @@
 {
     int lo = value & 0xffff;
     int hi = value >> 16;
-#ifdef ALT_BITSTREAM_WRITER_LE
+#ifdef BITSTREAM_WRITER_LE
     put_bits(s, 16, lo);
     put_bits(s, 16, hi);
 #else

BYtE
Philipp

PS: I'm not subscribed, please cc: me on replies.
-- 
  / /  (_)__  __ ____  __ Philipp Hahn
 / /__/ / _ \/ // /\ \/ /
/____/_/_//_/\_,_/ /_/\_\ pmhahn at titan.lahn.de



More information about the ffmpeg-devel mailing list