Commit fb6c6b15 authored by Carl Eugen Hoyos's avatar Carl Eugen Hoyos

avuienc: Use field_order to determine if a stream is interlaced.

parent 7a0d00dc
......@@ -43,7 +43,9 @@ static int avui_encode_frame(AVCodecContext *avctx, AVPacket *pkt,
const AVFrame *pic, int *got_packet)
{
uint8_t *dst, *src = pic->data[0];
int i, j, skip, ret, size, interlaced = pic->interlaced_frame;
int i, j, skip, ret, size, interlaced;
interlaced = avctx->field_order > AV_FIELD_PROGRESSIVE;
if (avctx->height == 486) {
skip = 10;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment