Commit aa9a63af authored by michael's avatar michael

10l patch by (matthieu castet <castet.matthieu free fr>)


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@3842 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent aa37384f
...@@ -1347,7 +1347,7 @@ static int encode_subband_c0run(SnowContext *s, SubBand *b, DWTELEM *src, DWTELE ...@@ -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); put_symbol2(&s->c, b->state[1], run, 3);
for(y=0; y<h; y++){ 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"); av_log(s->avctx, AV_LOG_ERROR, "encoded frame too large\n");
return -1; return -1;
} }
...@@ -1923,7 +1923,7 @@ static void encode_blocks(SnowContext *s){ ...@@ -1923,7 +1923,7 @@ static void encode_blocks(SnowContext *s){
int h= s->b_height; int h= s->b_height;
for(y=0; y<h; y++){ 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"); av_log(s->avctx, AV_LOG_ERROR, "encoded frame too large\n");
return; return;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment