diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2004-11-14 15:46:34 +0000 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2004-11-14 15:46:34 +0000 |
commit | fc0be57f6625cc1b7b586a088a39a2bd130fe910 (patch) | |
tree | f6bd2314d7c86fb2842285485758c9f0cb93338b /libavcodec/huffyuv.c | |
parent | 61c7c3e34730a536bd27f81a137004b77f320271 (diff) | |
download | ffmpeg-fc0be57f6625cc1b7b586a088a39a2bd130fe910.tar.gz |
plane predicted non-interlacd rgb decodeing fix
Originally committed as revision 3681 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/huffyuv.c')
-rw-r--r-- | libavcodec/huffyuv.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/huffyuv.c b/libavcodec/huffyuv.c index 61c2c782c7..81f560ede6 100644 --- a/libavcodec/huffyuv.c +++ b/libavcodec/huffyuv.c @@ -896,7 +896,7 @@ static int decode_frame(AVCodecContext *avctx, void *data, int *data_size, uint8 add_left_prediction_bgr32(p->data[0] + p->linesize[0]*y, s->temp[0], width, &leftr, &leftg, &leftb); if(s->predictor == PLANE){ - if((y&s->interlaced)==0 && y<s->height-2){ + if((y&s->interlaced)==0 && y<s->height-1-s->interlaced){ s->dsp.add_bytes(p->data[0] + p->linesize[0]*y, p->data[0] + p->linesize[0]*y + fake_ystride, fake_ystride); } |