summaryrefslogtreecommitdiff
path: root/libavcodec
diff options
context:
space:
mode:
authorJeff Downs <heydowns@borg.com>2007-10-09 17:45:34 +0000
committerAndreas Ă–man <andreas@lonelycoder.com>2007-10-09 17:45:34 +0000
commit03d3cab876cc0dfc4b9d2352653bb3dca64f30f9 (patch)
tree87dead0a102c11ddc61cc569edb5a99dac1989a6 /libavcodec
parent9ba718e4819da325c9d324c23a9a6210fde114c5 (diff)
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
Diffstat (limited to 'libavcodec')
-rw-r--r--libavcodec/h264.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/h264.c b/libavcodec/h264.c
index 6dd22bc047..6b97622bc0 100644
--- a/libavcodec/h264.c
+++ b/libavcodec/h264.c
@@ -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;
}