Mercurial > libavcodec.hg
comparison msrledec.c @ 9719:e7032c44d4a7 libavcodec
do not print false error if eof follows eol
author | bcoudurier |
---|---|
date | Wed, 27 May 2009 06:43:51 +0000 |
parents | c1ed557cd3b8 |
children | 71cf44ecaa70 |
comparison
equal
deleted
inserted
replaced
9718:017967b3067f | 9719:e7032c44d4a7 |
---|---|
144 p1 = *src++; | 144 p1 = *src++; |
145 if(p1 == 0) { //Escape code | 145 if(p1 == 0) { //Escape code |
146 p2 = *src++; | 146 p2 = *src++; |
147 if(p2 == 0) { //End-of-line | 147 if(p2 == 0) { //End-of-line |
148 output = pic->data[0] + (--line) * pic->linesize[0]; | 148 output = pic->data[0] + (--line) * pic->linesize[0]; |
149 if (line < 0){ | 149 if (line < 0 && !(src+1 < data + srcsize && AV_RB16(src) == 1)) { |
150 av_log(avctx, AV_LOG_ERROR, "Next line is beyond picture bounds\n"); | 150 av_log(avctx, AV_LOG_ERROR, "Next line is beyond picture bounds\n"); |
151 return -1; | 151 return -1; |
152 } | 152 } |
153 pos = 0; | 153 pos = 0; |
154 continue; | 154 continue; |