Commit 786f06e1 authored by Michael Niedermayer's avatar Michael Niedermayer

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

Found-by: 's avatarJoakim Plate <elupus@ecce.se>
Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent d0b68a9d
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment