[FFmpeg-cvslog] avuienc: Use field_order to determine if a stream is interlaced.
Carl Eugen Hoyos
git at videolan.org
Wed May 23 16:49:11 CEST 2012
ffmpeg | branch: master | Carl Eugen Hoyos <cehoyos at ag.or.at> | Wed May 23 16:36:53 2012 +0200| [fb6c6b15d749f63cec0d48eb374c2065ebfce936] | committer: Carl Eugen Hoyos
avuienc: Use field_order to determine if a stream is interlaced.
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=fb6c6b15d749f63cec0d48eb374c2065ebfce936
---
libavcodec/avuienc.c | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/libavcodec/avuienc.c b/libavcodec/avuienc.c
index 2dae5cc..53688a9 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;
More information about the ffmpeg-cvslog
mailing list