1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2024-12-23 12:43:46 +02:00

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>
This commit is contained in:
Michael Niedermayer 2012-08-20 22:30:00 +02:00
parent d0b68a9d57
commit 786f06e109

View File

@ -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