summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHendrik Leppkes <h.leppkes@gmail.com>2012-06-21 21:11:24 +0000
committerDerek Buitenhuis <derek.buitenhuis@gmail.com>2012-06-22 11:45:51 -0400
commitf6b4624fcf9a8f4966b495b9c769ff0796839d57 (patch)
tree5f6481dcdde4bd4fa11b71ab5c0d9e4f11c32081
parent8875333707f43900c1a0fa54cca0789025dde70b (diff)
downloadffmpeg-streaming-f6b4624fcf9a8f4966b495b9c769ff0796839d57.zip
ffmpeg-streaming-f6b4624fcf9a8f4966b495b9c769ff0796839d57.tar.gz
utvideo: mark interlaced frames as such
Signed-off-by: Michael Niedermayer <michaelni@gmx.at> Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
-rw-r--r--libavcodec/utvideo.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/libavcodec/utvideo.c b/libavcodec/utvideo.c
index e5efa4a..471d85a 100644
--- a/libavcodec/utvideo.c
+++ b/libavcodec/utvideo.c
@@ -499,6 +499,8 @@ static int decode_frame(AVCodecContext *avctx, void *data, int *data_size,
c->pic.key_frame = 1;
c->pic.pict_type = AV_PICTURE_TYPE_I;
+ c->pic.interlaced_frame = !!c->interlaced;
+
*data_size = sizeof(AVFrame);
*(AVFrame*)data = c->pic;
OpenPOWER on IntegriCloud