diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2007-12-01 00:19:44 +0000 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2007-12-01 00:19:44 +0000 |
commit | 90901860c21468d6e9ae437c2bacb099c7bd3acf (patch) | |
tree | fec0acd1392c465c3717ff4b2aa9b911f1667b1c /libavcodec/ratecontrol.c | |
parent | 7fffc879798bbbad647ad2b1b30f26855bf2abda (diff) | |
download | ffmpeg-90901860c21468d6e9ae437c2bacb099c7bd3acf.tar.gz |
stupid code (casting of void*) found by checktree.sh
Originally committed as revision 11117 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/ratecontrol.c')
-rw-r--r-- | libavcodec/ratecontrol.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/ratecontrol.c b/libavcodec/ratecontrol.c index 6cd5a4f30b..97438f6598 100644 --- a/libavcodec/ratecontrol.c +++ b/libavcodec/ratecontrol.c @@ -138,7 +138,7 @@ int ff_rate_control_init(MpegEncContext *s) 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) */ |