[SCM] libav/experimental: print a big warning if we mess up and run out of space ...

siretart at users.alioth.debian.org siretart at users.alioth.debian.org
Sun Jun 30 15:46:40 UTC 2013


The following commit has been merged in the experimental branch:
commit fe78f7cdaaf7b304ed81072688f92c10dabc778d
Author: Michael Niedermayer <michaelni at gmx.at>
Date:   Thu Feb 23 00:16:45 2006 +0000

    print a big warning if we mess up and run out of space ...
    
    Originally committed as revision 5052 to svn://svn.ffmpeg.org/ffmpeg/trunk

diff --git a/libavcodec/dv.c b/libavcodec/dv.c
index 08611a9..84bc74d 100644
--- a/libavcodec/dv.c
+++ b/libavcodec/dv.c
@@ -886,6 +886,8 @@ static inline void dv_encode_video_segment(DVVideoContext *s,
     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++)

-- 
Libav/FFmpeg packaging



More information about the pkg-multimedia-commits mailing list