From ddcca4ba074aa537c3059c76d69eb4ad6316bfe9 Mon Sep 17 00:00:00 2001 From: Anton Khirnov Date: Fri, 15 Feb 2013 17:29:16 +0100 Subject: [PATCH] lavc: stop setting AVFrame.motion_subsample_log2 It is not used inside lavc anywhere and now it makes no sense to export it. --- libavcodec/error_resilience.c | 1 - libavcodec/h264.c | 1 - libavcodec/svq3.c | 1 - 3 files changed, 3 deletions(-) diff --git a/libavcodec/error_resilience.c b/libavcodec/error_resilience.c index 78921e3..feef3a8 100644 --- a/libavcodec/error_resilience.c +++ b/libavcodec/error_resilience.c @@ -851,7 +851,6 @@ void ff_er_frame_end(ERContext *s) } return; } - s->cur_pic->f.motion_subsample_log2 = 3; } if (s->avctx->debug & FF_DEBUG_ER) { diff --git a/libavcodec/h264.c b/libavcodec/h264.c index 498f611..f2f37c8 100644 --- a/libavcodec/h264.c +++ b/libavcodec/h264.c @@ -360,7 +360,6 @@ static int alloc_picture(H264Context *h, Picture *pic) pic->motion_val[i] = (int16_t (*)[2])pic->motion_val_buf[i]->data + 4; pic->ref_index[i] = pic->ref_index_buf[i]->data; } - pic->f.motion_subsample_log2 = 2; return 0; fail: diff --git a/libavcodec/svq3.c b/libavcodec/svq3.c index f9d8d46..1ea99d1 100644 --- a/libavcodec/svq3.c +++ b/libavcodec/svq3.c @@ -1058,7 +1058,6 @@ static int get_buffer(AVCodecContext *avctx, Picture *pic) pic->ref_index[i] = pic->ref_index_buf[i]->data; } } - pic->f.motion_subsample_log2 = 2; pic->reference = !(h->pict_type == AV_PICTURE_TYPE_B); ret = ff_get_buffer(avctx, &pic->f, -- 2.7.4