diff options
author | Carl Eugen Hoyos <cehoyos@ag.or.at> | 2012-05-23 16:36:53 +0200 |
---|---|---|
committer | Carl Eugen Hoyos <cehoyos@ag.or.at> | 2012-05-23 16:36:53 +0200 |
commit | fb6c6b15d749f63cec0d48eb374c2065ebfce936 (patch) | |
tree | e002c0b48dc851975a2c5bc76744c32363aa05f9 /libavcodec | |
parent | 7a0d00dc79534dad4f57559184b90d0db7f31bc4 (diff) | |
download | ffmpeg-fb6c6b15d749f63cec0d48eb374c2065ebfce936.tar.gz |
avuienc: Use field_order to determine if a stream is interlaced.
Diffstat (limited to 'libavcodec')
-rw-r--r-- | libavcodec/avuienc.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/libavcodec/avuienc.c b/libavcodec/avuienc.c index 2dae5ccaf1..53688a9eec 100644 --- a/libavcodec/avuienc.c +++ b/libavcodec/avuienc.c @@ -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; |