summaryrefslogtreecommitdiff
path: root/libavcodec
diff options
context:
space:
mode:
authorMichel Bardiaux <mbardiaux@mediaxim.be>2007-03-08 14:49:43 +0000
committerMichel Bardiaux <mbardiaux@mediaxim.be>2007-03-08 14:49:43 +0000
commitbdb4b698d8bc0ffa128d057e15edabfdd83aef8b (patch)
tree61a38e36316c8e09936cd828f5a81506c858449a /libavcodec
parent07cbff39a79ee74385def1a6da8233ecdc58e6ac (diff)
Corrections so that builds with DEBUG work
Originally committed as revision 8295 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec')
-rw-r--r--libavcodec/h263dec.c3
-rw-r--r--libavcodec/wma.c2
2 files changed, 3 insertions, 2 deletions
diff --git a/libavcodec/h263dec.c b/libavcodec/h263dec.c
index 9246b52171..b385f84cda 100644
--- a/libavcodec/h263dec.c
+++ b/libavcodec/h263dec.c
@@ -429,7 +429,8 @@ uint64_t time= rdtsc();
#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;
diff --git a/libavcodec/wma.c b/libavcodec/wma.c
index 75d5d2177e..27a84ea896 100644
--- a/libavcodec/wma.c
+++ b/libavcodec/wma.c
@@ -171,7 +171,7 @@ int ff_wma_init(AVCodecContext * avctx, int flags2)
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);