aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndreas Rheinhardt <andreas.rheinhardt@outlook.com>2022-10-01 20:12:34 +0200
committerAndreas Rheinhardt <andreas.rheinhardt@outlook.com>2022-10-09 09:15:39 +0200
commit8f8c0ad291626fe1630986bc2b515e055f4f6321 (patch)
tree40c950cf76271a0db4eaa98ae7150498be802aa0
parentd287651c34901dfdd4e7a466792c40e5426000d0 (diff)
downloadffmpeg-8f8c0ad291626fe1630986bc2b515e055f4f6321.tar.gz
avcodec/huffyuvenc: Remove redundant casts
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
-rw-r--r--libavcodec/huffyuvenc.c18
1 files changed, 9 insertions, 9 deletions
diff --git a/libavcodec/huffyuvenc.c b/libavcodec/huffyuvenc.c
index 2d63b12abc..d159d5d309 100644
--- a/libavcodec/huffyuvenc.c
+++ b/libavcodec/huffyuvenc.c
@@ -333,20 +333,20 @@ static av_cold int encode_init(AVCodecContext *avctx)
return AVERROR(EINVAL);
}
- ((uint8_t*)avctx->extradata)[0] = s->predictor | (s->decorrelate << 6);
- ((uint8_t*)avctx->extradata)[2] = s->interlaced ? 0x10 : 0x20;
+ avctx->extradata[0] = s->predictor | (s->decorrelate << 6);
+ avctx->extradata[2] = s->interlaced ? 0x10 : 0x20;
if (s->context)
- ((uint8_t*)avctx->extradata)[2] |= 0x40;
+ avctx->extradata[2] |= 0x40;
if (s->version < 3) {
- ((uint8_t*)avctx->extradata)[1] = s->bitstream_bpp;
- ((uint8_t*)avctx->extradata)[3] = 0;
+ avctx->extradata[1] = s->bitstream_bpp;
+ avctx->extradata[3] = 0;
} else {
- ((uint8_t*)avctx->extradata)[1] = ((s->bps-1)<<4) | s->chroma_h_shift | (s->chroma_v_shift<<2);
+ avctx->extradata[1] = ((s->bps-1)<<4) | s->chroma_h_shift | (s->chroma_v_shift<<2);
if (s->chroma)
- ((uint8_t*)avctx->extradata)[2] |= s->yuv ? 1 : 2;
+ avctx->extradata[2] |= s->yuv ? 1 : 2;
if (s->alpha)
- ((uint8_t*)avctx->extradata)[2] |= 4;
- ((uint8_t*)avctx->extradata)[3] = 1;
+ avctx->extradata[2] |= 4;
+ avctx->extradata[3] = 1;
}
s->avctx->extradata_size = 4;