diff h263dec.c @ 4636:5bcb6208ac58 libavcodec

Corrections so that builds with DEBUG work
author mbardiaux
date Thu, 08 Mar 2007 14:49:43 +0000
parents 09849d8689d6
children 0d1cc37d9430
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;