diff options
author | Matthieu Castet <castet.matthieu@free.fr> | 2005-01-16 22:11:47 +0000 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2005-01-16 22:11:47 +0000 |
commit | d06c75a8307a3e24868f481c33cd1f43da12b51b (patch) | |
tree | 070c51dc242773e1d772088e270e74c7dad59c4a /libavcodec/snow.c | |
parent | 67e11730fc2ef111055d6588ddc115f4de3cf7f2 (diff) | |
download | ffmpeg-d06c75a8307a3e24868f481c33cd1f43da12b51b.tar.gz |
10l patch by (matthieu castet <castet.matthieu free fr>)
Originally committed as revision 3842 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/snow.c')
-rw-r--r-- | libavcodec/snow.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libavcodec/snow.c b/libavcodec/snow.c index a84ec7e6c4..13c596d36a 100644 --- a/libavcodec/snow.c +++ b/libavcodec/snow.c @@ -1347,7 +1347,7 @@ static int encode_subband_c0run(SnowContext *s, SubBand *b, DWTELEM *src, DWTELE put_symbol2(&s->c, b->state[1], run, 3); for(y=0; y<h; y++){ - if(&s->c.bytestream_end - &s->c.bytestream < w*40){ + if(s->c.bytestream_end - s->c.bytestream < w*40){ av_log(s->avctx, AV_LOG_ERROR, "encoded frame too large\n"); return -1; } @@ -1923,7 +1923,7 @@ static void encode_blocks(SnowContext *s){ int h= s->b_height; for(y=0; y<h; y++){ - if(&s->c.bytestream_end - &s->c.bytestream < w*MB_SIZE*MB_SIZE*3){ //FIXME nicer limit + if(s->c.bytestream_end - s->c.bytestream < w*MB_SIZE*MB_SIZE*3){ //FIXME nicer limit av_log(s->avctx, AV_LOG_ERROR, "encoded frame too large\n"); return; } |