changeset 4636:5bcb6208ac58 libavcodec

Corrections so that builds with DEBUG work
author mbardiaux
date Thu, 08 Mar 2007 14:49:43 +0000
parents 2ba8d13a66bc
children fd9e324b3978
files h263dec.c wma.c
diffstat 2 files changed, 3 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/h263dec.c	Thu Mar 08 10:25:06 2007 +0000
+++ b/h263dec.c	Thu Mar 08 14:49:43 2007 +0000
@@ -429,7 +429,8 @@
 #endif
 #ifdef DEBUG
     av_log(avctx, AV_LOG_DEBUG, "*****frame %d size=%d\n", avctx->frame_number, buf_size);
-    av_log(avctx, AV_LOG_DEBUG, "bytes=%x %x %x %x\n", buf[0], buf[1], buf[2], buf[3]);
+    if(buf_size>0)
+        av_log(avctx, AV_LOG_DEBUG, "bytes=%x %x %x %x\n", buf[0], buf[1], buf[2], buf[3]);
 #endif
     s->flags= avctx->flags;
     s->flags2= avctx->flags2;
--- a/wma.c	Thu Mar 08 10:25:06 2007 +0000
+++ b/wma.c	Thu Mar 08 14:49:43 2007 +0000
@@ -171,7 +171,7 @@
             high_freq = high_freq * 0.5;
         }
     }
-    dprintf("flags1=0x%x flags2=0x%x\n", flags1, flags2);
+    dprintf("flags2=0x%x\n", flags2);
     dprintf("version=%d channels=%d sample_rate=%d bitrate=%d block_align=%d\n",
            s->version, s->nb_channels, s->sample_rate, s->bit_rate,
            s->block_align);