Mercurial > libavcodec.hg
comparison ratecontrol.c @ 5958:ed05a3d964fa libavcodec
stupid code (casting of void*) found by checktree.sh
author | michael |
---|---|
date | Sat, 01 Dec 2007 00:19:44 +0000 |
parents | ce58a38cd391 |
children | e56b22861426 |
comparison
equal
deleted
inserted
replaced
5957:0f2c4fa2c4f2 | 5958:ed05a3d964fa |
---|---|
136 p= strchr(p+1, ';'); | 136 p= strchr(p+1, ';'); |
137 } | 137 } |
138 i+= s->max_b_frames; | 138 i+= s->max_b_frames; |
139 if(i<=0 || i>=INT_MAX / sizeof(RateControlEntry)) | 139 if(i<=0 || i>=INT_MAX / sizeof(RateControlEntry)) |
140 return -1; | 140 return -1; |
141 rcc->entry = (RateControlEntry*)av_mallocz(i*sizeof(RateControlEntry)); | 141 rcc->entry = av_mallocz(i*sizeof(RateControlEntry)); |
142 rcc->num_entries= i; | 142 rcc->num_entries= i; |
143 | 143 |
144 /* init all to skipped p frames (with b frames we might have a not encoded frame at the end FIXME) */ | 144 /* init all to skipped p frames (with b frames we might have a not encoded frame at the end FIXME) */ |
145 for(i=0; i<rcc->num_entries; i++){ | 145 for(i=0; i<rcc->num_entries; i++){ |
146 RateControlEntry *rce= &rcc->entry[i]; | 146 RateControlEntry *rce= &rcc->entry[i]; |