aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2012-08-20 22:30:00 +0200
committerMichael Niedermayer <michaelni@gmx.at>2012-08-20 22:30:00 +0200
commit786f06e109e7daef9b9f193eaf89c3493367615e (patch)
tree76bf058795bb72de0888f7c00b4e1974139541a5 /libavcodec
parentd0b68a9d57e827dfbe958be99422a1f271b36758 (diff)
downloadffmpeg-786f06e109e7daef9b9f193eaf89c3493367615e.tar.gz
h264: fix variable overflow after a few years of video playback
Found-by: Joakim Plate <elupus@ecce.se> Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec')
-rw-r--r--libavcodec/h264.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/h264.c b/libavcodec/h264.c
index 5d9758b236..f94e1e121b 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