summaryrefslogtreecommitdiff
path: root/libavcodec/lcldec.c
diff options
context:
space:
mode:
authorReimar Döffinger <Reimar.Doeffinger@gmx.de>2009-05-31 09:12:17 +0000
committerReimar Döffinger <Reimar.Doeffinger@gmx.de>2009-05-31 09:12:17 +0000
commit445e0ab5393c1b37906a46360f80cae85d51d129 (patch)
tree3ecb07b470626a5838e76ab3e6b25275926f8ff6 /libavcodec/lcldec.c
parent8c18e490c4f4d7c109f27b77f4502b5e612e62b4 (diff)
Get rid of extradata casts, it already has the right uint8_t * type
Originally committed as revision 19034 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/lcldec.c')
-rw-r--r--libavcodec/lcldec.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/libavcodec/lcldec.c b/libavcodec/lcldec.c
index c8a5ee614c..39f8f25490 100644
--- a/libavcodec/lcldec.c
+++ b/libavcodec/lcldec.c
@@ -485,13 +485,13 @@ static av_cold int decode_init(AVCodecContext *avctx)
}
/* Check codec type */
- if ((avctx->codec_id == CODEC_ID_MSZH && *((char *)avctx->extradata + 7) != CODEC_MSZH) ||
- (avctx->codec_id == CODEC_ID_ZLIB && *((char *)avctx->extradata + 7) != CODEC_ZLIB)) {
+ if ((avctx->codec_id == CODEC_ID_MSZH && avctx->extradata[7] != CODEC_MSZH) ||
+ (avctx->codec_id == CODEC_ID_ZLIB && avctx->extradata[7] != CODEC_ZLIB)) {
av_log(avctx, AV_LOG_ERROR, "Codec id and codec type mismatch. This should not happen.\n");
}
/* Detect image type */
- switch (c->imgtype = *((char *)avctx->extradata + 4)) {
+ switch (c->imgtype = avctx->extradata[4]) {
case IMGTYPE_YUV111:
c->decomp_size = basesize * 3;
max_decomp_size = max_basesize * 3;
@@ -534,7 +534,7 @@ static av_cold int decode_init(AVCodecContext *avctx)
}
/* Detect compression method */
- c->compression = *((char *)avctx->extradata + 5);
+ c->compression = avctx->extradata[5];
switch (avctx->codec_id) {
case CODEC_ID_MSZH:
switch (c->compression) {
@@ -588,7 +588,7 @@ static av_cold int decode_init(AVCodecContext *avctx)
}
/* Detect flags */
- c->flags = *((char *)avctx->extradata + 6);
+ c->flags = avctx->extradata[6];
if (c->flags & FLAG_MULTITHREAD)
av_log(avctx, AV_LOG_INFO, "Multithread encoder flag set.\n");
if (c->flags & FLAG_NULLFRAME)