ffmpeg | branch: master | Andreas Rheinhardt <andreas.rheinha...@outlook.com> | Sat Oct 1 20:12:34 2022 +0200| [8f8c0ad291626fe1630986bc2b515e055f4f6321] | committer: Andreas Rheinhardt
avcodec/huffyuvenc: Remove redundant casts Signed-off-by: Andreas Rheinhardt <andreas.rheinha...@outlook.com> > http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=8f8c0ad291626fe1630986bc2b515e055f4f6321 --- libavcodec/huffyuvenc.c | 18 +++++++++--------- 1 file 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; _______________________________________________ ffmpeg-cvslog mailing list ffmpeg-cvslog@ffmpeg.org https://ffmpeg.org/mailman/listinfo/ffmpeg-cvslog To unsubscribe, visit link above, or email ffmpeg-cvslog-requ...@ffmpeg.org with subject "unsubscribe".