Mercurial > libavcodec.hg
diff 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 |
line wrap: on
line diff
--- a/ratecontrol.c Fri Nov 30 21:51:34 2007 +0000 +++ b/ratecontrol.c Sat Dec 01 00:19:44 2007 +0000 @@ -138,7 +138,7 @@ i+= s->max_b_frames; if(i<=0 || i>=INT_MAX / sizeof(RateControlEntry)) return -1; - rcc->entry = (RateControlEntry*)av_mallocz(i*sizeof(RateControlEntry)); + rcc->entry = av_mallocz(i*sizeof(RateControlEntry)); rcc->num_entries= i; /* init all to skipped p frames (with b frames we might have a not encoded frame at the end FIXME) */