Commit a19ede73 authored by andoma's avatar andoma

fix incorrect check for abs_diff_pic_num overflow

patch by Jeff Downs, heydowns a borg d com



git-svn-id: file:///var/local/repositories/ffmpeg/trunk@10700 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 8d7db38d
...@@ -3076,7 +3076,7 @@ static int decode_ref_pic_list_reordering(H264Context *h){ ...@@ -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; const unsigned int abs_diff_pic_num= get_ue_golomb(&s->gb) + 1;
int frame_num; 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"); av_log(h->s.avctx, AV_LOG_ERROR, "abs_diff_pic_num overflow\n");
return -1; return -1;
} }
......
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