[Ffmpeg-cvslog] r7997 - trunk/libavcodec/h264.c
michael
subversion
Fri Feb 16 22:29:16 CET 2007
Author: michael
Date: Fri Feb 16 22:29:15 2007
New Revision: 7997
Modified:
trunk/libavcodec/h264.c
Log:
fix ref_count check
Modified: trunk/libavcodec/h264.c
==============================================================================
--- trunk/libavcodec/h264.c (original)
+++ trunk/libavcodec/h264.c Fri Feb 16 22:29:15 2007
@@ -7922,7 +7922,7 @@
}
pps->ref_count[0]= get_ue_golomb(&s->gb) + 1;
pps->ref_count[1]= get_ue_golomb(&s->gb) + 1;
- if(pps->ref_count[0] > 32 || pps->ref_count[1] > 32){
+ if(pps->ref_count[0]-1 > 32-1 || pps->ref_count[1]-1 > 32-1){
av_log(h->s.avctx, AV_LOG_ERROR, "reference overflow (pps)\n");
pps->ref_count[0]= pps->ref_count[1]= 1;
return -1;
More information about the ffmpeg-cvslog
mailing list