[FFmpeg-cvslog] h264: fix variable overflow after a few years of video playback

Michael Niedermayer git at videolan.org
Mon Aug 20 22:35:45 CEST 2012


ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Mon Aug 20 22:30:00 2012 +0200| [786f06e109e7daef9b9f193eaf89c3493367615e] | committer: Michael Niedermayer

h264: fix variable overflow after a few years of video playback

Found-by: Joakim Plate <elupus at ecce.se>
Signed-off-by: Michael Niedermayer <michaelni at gmx.at>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=786f06e109e7daef9b9f193eaf89c3493367615e
---

 libavcodec/h264.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavcodec/h264.c b/libavcodec/h264.c
index 5d9758b..f94e1e1 100644
--- a/libavcodec/h264.c
+++ b/libavcodec/h264.c
@@ -3868,7 +3868,7 @@ again:
                     break;
 
                 if (h->sei_recovery_frame_cnt >= 0 && (h->frame_num != h->sei_recovery_frame_cnt || hx->slice_type_nos != AV_PICTURE_TYPE_I))
-                    h->valid_recovery_point++;
+                    h->valid_recovery_point = 1;
 
                 if (   h->sei_recovery_frame_cnt >= 0
                     && (   h->recovery_frame<0



More information about the ffmpeg-cvslog mailing list