Mercurial > libavcodec.hg
changeset 9719:e7032c44d4a7 libavcodec
do not print false error if eof follows eol
author | bcoudurier |
---|---|
date | Wed, 27 May 2009 06:43:51 +0000 |
parents | 017967b3067f |
children | d6a35d7be925 |
files | msrledec.c |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- 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; }