[Ffmpeg-cvslog] r6458 - trunk/libavcodec/vorbis_enc.c

ods15 subversion
Mon Oct 2 08:07:33 CEST 2006


Author: ods15
Date: Mon Oct  2 08:07:32 2006
New Revision: 6458

Modified:
   trunk/libavcodec/vorbis_enc.c

Log:
Original Commit: r51 | ods15 | 2006-09-23 16:32:30 +0300 (Sat, 23 Sep 2006) | 2 lines

deobfuscate a bit

Modified: trunk/libavcodec/vorbis_enc.c
==============================================================================
--- trunk/libavcodec/vorbis_enc.c	(original)
+++ trunk/libavcodec/vorbis_enc.c	Mon Oct  2 08:07:32 2006
@@ -189,7 +189,11 @@
         cb_entry_t * e = &cb->entries[i];
         int j = 0;
         if (h[0]) h[0] = 0;
-        else for (j = e->len; !h[j]; j--) assert(j);
+        else {
+            for (j = e->len; j; j--)
+                if (h[j]) break;
+            assert(j);
+        }
         e->codeword = h[j];
         h[j] = 0;
         for (j++; j <= e->len; j++) h[j] = e->codeword | (1 << (j - 1));




More information about the ffmpeg-cvslog mailing list