changeset 3139:e58fb7ffbb4f libavcodec

print a big warning if we mess up and run out of space ...
author michael
date Thu, 23 Feb 2006 00:16:45 +0000
parents c12fc3d1c612
children d6e057513aa8
files dv.c
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/dv.c	Wed Feb 22 05:59:44 2006 +0000
+++ b/dv.c	Thu Feb 23 00:16:45 2006 +0000
@@ -886,6 +886,8 @@
     for (j=0; j<5*6; j++) {
        if (enc_blks[j].partial_bit_count)
            pb=dv_encode_ac(&enc_blks[j], pb, &pbs[6*5]);
+       if (enc_blks[j].partial_bit_count)
+            av_log(NULL, AV_LOG_ERROR, "ac bitstream overflow\n");
     }
 
     for (j=0; j<5*6; j++)