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-05-23 18:36:53 +0400
committerCarl Eugen Hoyos <cehoyos@ag.or.at>2012-05-23 18:36:53 +0400
commitfb6c6b15d749f63cec0d48eb374c2065ebfce936 (patch)
treee002c0b48dc851975a2c5bc76744c32363aa05f9 /libavcodec
parent7a0d00dc79534dad4f57559184b90d0db7f31bc4 (diff)
avuienc: Use field_order to determine if a stream is interlaced.
Diffstat (limited to 'libavcodec')
-rw-r--r--libavcodec/avuienc.c4
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;