summaryrefslogtreecommitdiff
path: root/libavcodec/dv.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2006-02-23 00:16:45 +0000
committerMichael Niedermayer <michaelni@gmx.at>2006-02-23 00:16:45 +0000
commitfe78f7cdaaf7b304ed81072688f92c10dabc778d (patch)
tree373af7e5e7904e9d6eb266713d3418773de91f82 /libavcodec/dv.c
parentb4712e3c8b3f647143ce2c1ea2144ebe14042ffb (diff)
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
Diffstat (limited to 'libavcodec/dv.c')
-rw-r--r--libavcodec/dv.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/libavcodec/dv.c b/libavcodec/dv.c
index 08611a9000..84bc74d3dc 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++)