Browse Source

fix incorrect check for abs_diff_pic_num overflow

patch by Jeff Downs, heydowns a borg d com

Originally committed as revision 10700 to svn://svn.ffmpeg.org/ffmpeg/trunk
tags/v0.5
Jeff Downs Andreas Öman 18 years ago
parent
commit
03d3cab876
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      libavcodec/h264.c

+ 1
- 1
libavcodec/h264.c View File

@@ -3076,7 +3076,7 @@ static int decode_ref_pic_list_reordering(H264Context *h){
const unsigned int abs_diff_pic_num= get_ue_golomb(&s->gb) + 1;
int frame_num;

if(abs_diff_pic_num >= h->max_pic_num){
if(abs_diff_pic_num > h->max_pic_num){
av_log(h->s.avctx, AV_LOG_ERROR, "abs_diff_pic_num overflow\n");
return -1;
}


Loading…
Cancel
Save