Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/FFmpeg/FFmpeg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCarl Eugen Hoyos <cehoyos@ag.or.at>2012-06-18 11:01:35 +0400
committerCarl Eugen Hoyos <cehoyos@ag.or.at>2012-06-18 11:01:35 +0400
commit3b3150ec9bfddd9bd57dcd378b43a8f363b0fc4f (patch)
treec352ac401276ba4fd9b0530b8e9d58f1e5f70e4b /libavcodec/utvideo.c
parent564bb244eb6108a8cb09c212d2d56f94d9d0f4c9 (diff)
Fix interlaced prediction for RGB utvideo.
Fixes ticket #1215
Diffstat (limited to 'libavcodec/utvideo.c')
-rw-r--r--libavcodec/utvideo.c6
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);