diff options
author | Carl Eugen Hoyos <cehoyos@ag.or.at> | 2012-06-18 09:01:35 +0200 |
---|---|---|
committer | Carl Eugen Hoyos <cehoyos@ag.or.at> | 2012-06-18 09:01:35 +0200 |
commit | 3b3150ec9bfddd9bd57dcd378b43a8f363b0fc4f (patch) | |
tree | c352ac401276ba4fd9b0530b8e9d58f1e5f70e4b | |
parent | 564bb244eb6108a8cb09c212d2d56f94d9d0f4c9 (diff) | |
download | ffmpeg-3b3150ec9bfddd9bd57dcd378b43a8f363b0fc4f.tar.gz |
Fix interlaced prediction for RGB utvideo.
Fixes ticket #1215
-rw-r--r-- | libavcodec/utvideo.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/libavcodec/utvideo.c b/libavcodec/utvideo.c index d8699c6b7a..ead192be60 100644 --- a/libavcodec/utvideo.c +++ b/libavcodec/utvideo.c @@ -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); |