diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2012-08-20 22:30:00 +0200 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2012-08-20 22:30:00 +0200 |
commit | 786f06e109e7daef9b9f193eaf89c3493367615e (patch) | |
tree | 76bf058795bb72de0888f7c00b4e1974139541a5 | |
parent | d0b68a9d57e827dfbe958be99422a1f271b36758 (diff) | |
download | ffmpeg-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>
-rw-r--r-- | libavcodec/h264.c | 2 |
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 |