diff h264.c @ 5772:65b71bd21a4d libavcodec

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
author andoma
date Thu, 04 Oct 2007 06:43:58 +0000
parents 5290a3850c03
children e3d7a78e2df3
line wrap: on
line diff
--- a/h264.c	Thu Oct 04 06:41:49 2007 +0000
+++ b/h264.c	Thu Oct 04 06:43:58 2007 +0000
@@ -3742,7 +3742,7 @@
         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);
     }