Showing the changes to libavcodec (1 of 1 file). Show all
Unified · Split
| @@ -206,8 +206,8 @@ static int rv20_decode_picture_header(RVDecContext *rv, int whole_size) · 205 unmodified lines | ||
| 206 | 206 | return AVERROR_INVALIDDATA; |
| 207 | 207 | } |
| 208 | 208 | |
| 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]; | |
| 211 | 211 | } else { |
| 212 | 212 | new_w = rv->orig_width; |
| 213 | 213 | new_h = rv->orig_height; |
| @@ -368,8 +368,8 @@ static av_cold int rv10_decode_init(AVCodecContext *avctx) · 154 unmodified lines | ||
| 368 | 368 | rv->orig_width = avctx->coded_width; |
| 369 | 369 | rv->orig_height = avctx->coded_height; |
| 370 | 370 | |
| 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); | |
| 373 | 373 | |
| 374 | 374 | major_ver = RV_GET_MAJOR_VER(rv->sub_id); |
| 375 | 375 | minor_ver = RV_GET_MINOR_VER(rv->sub_id); |