mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-12-23 12:43:46 +02:00
utvideo: Fix interlaced prediction for RGB utvideo.
Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
This commit is contained in:
parent
a5a93fa8f5
commit
8875333707
@ -439,10 +439,17 @@ static int decode_frame(AVCodecContext *avctx, void *data, int *data_size,
|
||||
plane_start[i], c->frame_pred == PRED_LEFT);
|
||||
if (ret)
|
||||
return ret;
|
||||
if (c->frame_pred == PRED_MEDIAN)
|
||||
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);
|
||||
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);
|
||||
|
Loading…
Reference in New Issue
Block a user