diff options
author | Andreas Rheinhardt <andreas.rheinhardt@outlook.com> | 2025-02-24 19:05:32 +0100 |
---|---|---|
committer | Andreas Rheinhardt <andreas.rheinhardt@outlook.com> | 2025-03-04 12:56:35 +0100 |
commit | 1adc84136e499302a787537dbc9323c4abb647bf (patch) | |
tree | dd6cda634130b187979b30cf47330464c5d2b6bd /libavcodec/vc1.c | |
parent | 920217975407bcb9f9ca9ab98a2e2dcb3a98e05a (diff) | |
download | ffmpeg-1adc84136e499302a787537dbc9323c4abb647bf.tar.gz |
avcodec/vc1: Add max_b_frames field to VC1Context
Don't reuse MpegEncContext.max_b_frames, which is supposed
to be encoder-only.
Reviewed-by: Ramiro Polla <ramiro.polla@gmail.com>
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
Diffstat (limited to 'libavcodec/vc1.c')
-rw-r--r-- | libavcodec/vc1.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libavcodec/vc1.c b/libavcodec/vc1.c index d263c70be7..dec3e16ea2 100644 --- a/libavcodec/vc1.c +++ b/libavcodec/vc1.c @@ -343,7 +343,7 @@ int ff_vc1_decode_sequence_header(AVCodecContext *avctx, VC1Context *v, GetBitCo "RANGERED should be set to 0 in Simple Profile\n"); } - v->s.max_b_frames = avctx->max_b_frames = get_bits(gb, 3); //common + v->max_b_frames = avctx->max_b_frames = get_bits(gb, 3); //common v->quantizer_mode = get_bits(gb, 2); //common v->finterpflag = get_bits1(gb); //common @@ -431,7 +431,7 @@ FF_ENABLE_DEPRECATION_WARNINGS av_log(v->s.avctx, AV_LOG_ERROR, "Progressive Segmented Frame mode: not supported (yet)\n"); return -1; } - v->s.max_b_frames = v->s.avctx->max_b_frames = 7; + v->max_b_frames = v->s.avctx->max_b_frames = 7; if (get_bits1(gb)) { //Display Info - decoding is not affected by it int w, h, ar = 0; av_log(v->s.avctx, AV_LOG_DEBUG, "Display extended info:\n"); |