aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/h264.c
diff options
context:
space:
mode:
authorJeff Downs <heydowns@borg.com>2007-10-04 06:43:58 +0000
committerAndreas Ă–man <andreas@lonelycoder.com>2007-10-04 06:43:58 +0000
commitf57e2af68bb58d67c32612fb3e70a47b13d66695 (patch)
treee141690cfe45b534118d5e04a384b9667ce4c91a /libavcodec/h264.c
parentc58b7471530e5a92b857cf82febf345c57c1295a (diff)
downloadffmpeg-f57e2af68bb58d67c32612fb3e70a47b13d66695.tar.gz
Fix h->curr_pic_num for field pictures. Necessary for proper PAFF support.
patch by Jeff Downs, heydowns a borg d com original thread: Subject: [FFmpeg-devel] [PATCH] Implement PAFF in H.264 Date: 18/09/07 20:30 Originally committed as revision 10663 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/h264.c')
-rw-r--r--libavcodec/h264.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/h264.c b/libavcodec/h264.c
index 26950022a8..b1bb071244 100644
--- a/libavcodec/h264.c
+++ b/libavcodec/h264.c
@@ -3742,7 +3742,7 @@ static int decode_slice_header(H264Context *h, H264Context *h0){
h->curr_pic_num= h->frame_num;
h->max_pic_num= 1<< h->sps.log2_max_frame_num;
}else{
- h->curr_pic_num= 2*h->frame_num;
+ h->curr_pic_num= 2*h->frame_num + 1;
h->max_pic_num= 1<<(h->sps.log2_max_frame_num + 1);
}