aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVittorio Giovara <vittorio.giovara@gmail.com>2015-07-15 18:41:18 +0100
committerVittorio Giovara <vittorio.giovara@gmail.com>2015-07-20 14:13:42 +0100
commit75c1ed2e4c7250f5e75a11d0140727054ff0136b (patch)
treef869b474c3f47071ee4b2ba465e51272d1d1356d
parent10a9149de242c7bbc4e130d3d7c593b89e20f80e (diff)
downloadffmpeg-75c1ed2e4c7250f5e75a11d0140727054ff0136b.tar.gz
ffv1enc: Use input frame to set SAR and interlacing
-rw-r--r--libavcodec/ffv1enc.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/libavcodec/ffv1enc.c b/libavcodec/ffv1enc.c
index ad52f155d1..28289fb161 100644
--- a/libavcodec/ffv1enc.c
+++ b/libavcodec/ffv1enc.c
@@ -863,12 +863,12 @@ static void encode_slice_header(FFV1Context *f, FFV1Context *fs)
put_symbol(c, state, f->plane[j].quant_table_index, 0);
av_assert0(f->plane[j].quant_table_index == f->avctx->context_model);
}
- if (!f->avctx->coded_frame->interlaced_frame)
+ if (!f->frame->interlaced_frame)
put_symbol(c, state, 3, 0);
else
- put_symbol(c, state, 1 + !f->avctx->coded_frame->top_field_first, 0);
- put_symbol(c, state, f->avctx->coded_frame->sample_aspect_ratio.num, 0);
- put_symbol(c, state, f->avctx->coded_frame->sample_aspect_ratio.den, 0);
+ put_symbol(c, state, 1 + !f->frame->top_field_first, 0);
+ put_symbol(c, state, f->frame->sample_aspect_ratio.num, 0);
+ put_symbol(c, state, f->frame->sample_aspect_ratio.den, 0);
}
static int encode_slice(AVCodecContext *c, void *arg)