History

avcodec/rv10: Perform RV20 check only for RV20

Andreas Rheinhardt committed 1 year ago

Commit ea4b9a11 parent f5fc31a1 file · +7 −7Browse files

Unified · Split

libavcodec/rv10.c+7−7
@@ -284,6 +284,13 @@ static int rv20_decode_picture_header(RVDecContext *rv, int whole_size) · 283 unmodified lines
284284 skip_bits(&s->gb, 5);
285285
286286 s->h263_aic = s->pict_type == AV_PICTURE_TYPE_I;
287+ if (s->h263_aic) {
288+ s->y_dc_scale_table =
289+ s->c_dc_scale_table = ff_aic_dc_scale_table;
290+ } else {
291+ s->y_dc_scale_table =
292+ s->c_dc_scale_table = ff_mpeg1_dc_scale_table;
293+ }
287294 if (!s->avctx->lowres)
288295 s->loop_filter = 1;
289296
@@ -470,13 +477,6 @@ static int rv10_decode_packet(AVCodecContext *avctx, const uint8_t *buf, · 180 unmodified lines
470477 }
471478 start_mb_x = s->mb_x;
472479 s->resync_mb_y = s->mb_y;
473− if (s->h263_aic) {
474− s->y_dc_scale_table =
475− s->c_dc_scale_table = ff_aic_dc_scale_table;
476− } else {
477− s->y_dc_scale_table =
478− s->c_dc_scale_table = ff_mpeg1_dc_scale_table;
479− }
480480
481481 ff_set_qscale(s, s->qscale);
482482

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