History

avcodec/rv10: Remove pointless casts

Andreas Rheinhardt committed 1 year ago

Commit 13f06df1 parent 116fd731 file · +4 −4Browse files

Showing the changes to libavcodec (1 of 1 file). Show all

Unified · Split

libavcodec/rv10.c+4−4
@@ -206,8 +206,8 @@ static int rv20_decode_picture_header(RVDecContext *rv, int whole_size) · 205 unmodified lines
206206 return AVERROR_INVALIDDATA;
207207 }
208208
209− new_w = 4 * ((uint8_t *) s->avctx->extradata)[6 + 2 * f];
210− new_h = 4 * ((uint8_t *) s->avctx->extradata)[7 + 2 * f];
209+ new_w = 4 * s->avctx->extradata[6 + 2 * f];
210+ new_h = 4 * s->avctx->extradata[7 + 2 * f];
211211 } else {
212212 new_w = rv->orig_width;
213213 new_h = rv->orig_height;
@@ -368,8 +368,8 @@ static av_cold int rv10_decode_init(AVCodecContext *avctx) · 154 unmodified lines
368368 rv->orig_width = avctx->coded_width;
369369 rv->orig_height = avctx->coded_height;
370370
371− s->h263_long_vectors = ((uint8_t *) avctx->extradata)[3] & 1;
372− rv->sub_id = AV_RB32((uint8_t *) avctx->extradata + 4);
371+ s->h263_long_vectors = avctx->extradata[3] & 1;
372+ rv->sub_id = AV_RB32A(avctx->extradata + 4);
373373
374374 major_ver = RV_GET_MAJOR_VER(rv->sub_id);
375375 minor_ver = RV_GET_MINOR_VER(rv->sub_id);

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t