Fix interlaced prediction for RGB utvideo.

Fixes ticket #1215
This commit is contained in:
Carl Eugen Hoyos 2012-06-18 09:01:35 +02:00
parent 564bb244eb
commit 3b3150ec9b

View File

@ -438,9 +438,15 @@ static int decode_frame(AVCodecContext *avctx, void *data, int *data_size,
if (ret)
return ret;
if (c->frame_pred == PRED_MEDIAN)
if (!c->interlaced) {
restore_median(c->pic.data[0] + rgb_order[i], c->planes,
c->pic.linesize[0], avctx->width, avctx->height,
c->slices, 0);
} else {
restore_median_il(c->pic.data[0] + rgb_order[i], c->planes,
c->pic.linesize[0], avctx->width, avctx->height,
c->slices, 0);
}
}
restore_rgb_planes(c->pic.data[0], c->planes, c->pic.linesize[0],
avctx->width, avctx->height);