# HG changeset patch # User bcoudurier # Date 1243406631 0 # Node ID e7032c44d4a7b11c2826955a4c474495e48c4301 # Parent 017967b3067ff7518615c4aff652fd0a690aa4b1 do not print false error if eof follows eol diff -r 017967b3067f -r e7032c44d4a7 msrledec.c --- a/msrledec.c Wed May 27 00:14:32 2009 +0000 +++ b/msrledec.c Wed May 27 06:43:51 2009 +0000 @@ -146,7 +146,7 @@ p2 = *src++; if(p2 == 0) { //End-of-line output = pic->data[0] + (--line) * pic->linesize[0]; - if (line < 0){ + if (line < 0 && !(src+1 < data + srcsize && AV_RB16(src) == 1)) { av_log(avctx, AV_LOG_ERROR, "Next line is beyond picture bounds\n"); return -1; }