changeset 2435:c89ac0e70c66 libavcodec

10l patch by (matthieu castet <castet.matthieu free fr>)
author michael
date Sun, 16 Jan 2005 22:11:47 +0000
parents 24aa9209e8b0
children 86d14aebd527
files snow.c
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/snow.c	Sat Jan 15 20:04:41 2005 +0000
+++ b/snow.c	Sun Jan 16 22:11:47 2005 +0000
@@ -1347,7 +1347,7 @@
         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 @@
     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;
         }