[FFmpeg-cvslog] r10663 - in trunk/libavcodec: h264.c h264.h
andoma
subversion
Thu Oct 4 08:43:58 CEST 2007
Author: andoma
Date: Thu Oct 4 08:43:58 2007
New Revision: 10663
Log:
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
Modified:
trunk/libavcodec/h264.c
trunk/libavcodec/h264.h
Modified: trunk/libavcodec/h264.c
==============================================================================
--- trunk/libavcodec/h264.c (original)
+++ trunk/libavcodec/h264.c Thu Oct 4 08:43:58 2007
@@ -3742,7 +3742,7 @@ static int decode_slice_header(H264Conte
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);
}
Modified: trunk/libavcodec/h264.h
==============================================================================
--- trunk/libavcodec/h264.h (original)
+++ trunk/libavcodec/h264.h Thu Oct 4 08:43:58 2007
@@ -285,7 +285,7 @@ typedef struct H264Context{
int prev_frame_num; ///< frame_num of the last pic for POC type 1/2
/**
- * frame_num for frames or 2*frame_num for field pics.
+ * frame_num for frames or 2*frame_num+1 for field pics.
*/
int curr_pic_num;
More information about the ffmpeg-cvslog
mailing list