Mercurial > libavcodec.hg
changeset 5805:12b1717f80a3 libavcodec
fix incorrect check for abs_diff_pic_num overflow
patch by Jeff Downs, heydowns a borg d com
author | andoma |
---|---|
date | Tue, 09 Oct 2007 17:45:34 +0000 |
parents | af7e6436d8bd |
children | 62fc35411cb1 |
files | h264.c |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/h264.c Tue Oct 09 15:33:19 2007 +0000 +++ b/h264.c Tue Oct 09 17:45:34 2007 +0000 @@ -3076,7 +3076,7 @@ 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; }