avcodec/rv10: Avoid indirection

Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
This commit is contained in:
Andreas Rheinhardt 2024-06-14 19:56:12 +02:00
parent 594723ec38
commit 64d2bca452
1 changed files with 2 additions and 2 deletions

View File

@ -385,11 +385,11 @@ static av_cold int rv10_decode_init(AVCodecContext *avctx)
case 2:
if (minor_ver >= 2) {
s->low_delay = 0;
s->avctx->has_b_frames = 1;
avctx->has_b_frames = 1;
}
break;
default:
av_log(s->avctx, AV_LOG_ERROR, "unknown header %X\n", rv->sub_id);
av_log(avctx, AV_LOG_ERROR, "unknown header %X\n", rv->sub_id);
avpriv_request_sample(avctx, "RV1/2 version");
return AVERROR_PATCHWELCOME;
}