Browse Source

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>
tags/n1.0
Michael Niedermayer 13 years ago
parent
commit
786f06e109
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      libavcodec/h264.c

+ 1
- 1
libavcodec/h264.c 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


Loading…
Cancel
Save