aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/h264.h
diff options
context:
space:
mode:
authorJohn Stebbins <jstebbins.hb@gmail.com>2011-09-18 13:10:52 -0700
committerMichael Niedermayer <michaelni@gmx.at>2011-09-18 23:13:50 +0200
commit53e37840bf205a24c3b3ad6d838805dc54a905bf (patch)
tree1dd8b63d4463757d5fab347dc57e2d70863eaeb3 /libavcodec/h264.h
parent96c93b8ceb6c95335ed8fc743956e46dd1ccfae5 (diff)
downloadffmpeg-53e37840bf205a24c3b3ad6d838805dc54a905bf.tar.gz
calculate frame_num for recovery point "keyframe"
recovery points that have non-zero recovery_frame_cnt resulted in flagging incomplete frames as keyframes. This delays setting the keyframe flag till the frame has been fully constructed.
Diffstat (limited to 'libavcodec/h264.h')
-rw-r--r--libavcodec/h264.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/libavcodec/h264.h b/libavcodec/h264.h
index ed4afdddfa..47d6d7fa32 100644
--- a/libavcodec/h264.h
+++ b/libavcodec/h264.h
@@ -571,6 +571,13 @@ typedef struct H264Context{
* frames.
*/
int sei_recovery_frame_cnt;
+ /**
+ * recovery_frame is the frame_num at which the next frame should
+ * be fully constructed.
+ *
+ * Set to -1 when not expecting a recovery point.
+ */
+ int recovery_frame;
int luma_weight_flag[2]; ///< 7.4.3.2 luma_weight_lX_flag
int chroma_weight_flag[2]; ///< 7.4.3.2 chroma_weight_lX_flag