summaryrefslogtreecommitdiff
path: root/libavcodec/indeo3.c
diff options
context:
space:
mode:
authorBenoit Fouet <benoit.fouet@free.fr>2008-09-30 09:08:27 +0000
committerBenoit Fouet <benoit.fouet@free.fr>2008-09-30 09:08:27 +0000
commit2c3c87b8c4c3195f04a0db5ac053a2f77108ad43 (patch)
treea7b5d00d2150fde9ec05abea0f5fdea9a49110ce /libavcodec/indeo3.c
parent9fd88b29461b0245f0e73ec30a6b9f29a9e25e72 (diff)
Remove useless casts and use variable instead of its type in sizeof.
Originally committed as revision 15471 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/indeo3.c')
-rw-r--r--libavcodec/indeo3.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libavcodec/indeo3.c b/libavcodec/indeo3.c
index 1cf6b5ad5d..e535971e1c 100644
--- a/libavcodec/indeo3.c
+++ b/libavcodec/indeo3.c
@@ -66,7 +66,7 @@ static av_cold void build_modpred(Indeo3DecodeContext *s)
{
int i, j;
- s->ModPred = (unsigned char *) av_malloc (8 * 128);
+ s->ModPred = av_malloc(8 * 128);
for (i=0; i < 128; ++i) {
s->ModPred[i+0*128] = (i > 126) ? 254 : 2*((i + 1) - ((i + 1) % 2));
@@ -80,7 +80,7 @@ static av_cold void build_modpred(Indeo3DecodeContext *s)
s->ModPred[i+7*128] = 2*((i + 5) - ((i + 4) % 9));
}
- s->corrector_type = (unsigned short *) av_malloc (24 * 256 * sizeof(unsigned short));
+ s->corrector_type = av_malloc(24 * 256 * sizeof(*s->corrector_type));
for (i=0; i < 24; ++i) {
for (j=0; j < 256; ++j) {