summaryrefslogtreecommitdiff
path: root/libavcodec
diff options
context:
space:
mode:
authorReinhard Nissl <rnissl@gmx.de>2007-11-10 06:10:46 +0000
committerAndreas Ă–man <andreas@lonelycoder.com>2007-11-10 06:10:46 +0000
commitce5d17f590719504e6318b757dc74ee0b2da4ce4 (patch)
tree15b27d1afc0eac7ddb8b0f55efa0c90206546e51 /libavcodec
parent671028e074bfdfb1ceb61ae9746a33ebd33a61cc (diff)
Provide top_field_first logic for h264
patch by: Reinhard Nissl rnissl a gmx d de Originally committed as revision 10989 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec')
-rw-r--r--libavcodec/h264.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/libavcodec/h264.c b/libavcodec/h264.c
index 70de4cfe48..f4def1276e 100644
--- a/libavcodec/h264.c
+++ b/libavcodec/h264.c
@@ -7767,6 +7767,8 @@ static int decode_frame(AVCodecContext *avctx,
} else {
cur->interlaced_frame = FIELD_OR_MBAFF_PICTURE;
+ /* Derive top_field_first from field pocs. */
+ cur->top_field_first = cur->field_poc[0] < cur->field_poc[1];
//FIXME do something with unavailable reference frames