aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/mss2.c
diff options
context:
space:
mode:
authorAndreas Rheinhardt <andreas.rheinhardt@outlook.com>2025-02-24 19:05:32 +0100
committerAndreas Rheinhardt <andreas.rheinhardt@outlook.com>2025-03-04 12:56:35 +0100
commit1adc84136e499302a787537dbc9323c4abb647bf (patch)
treedd6cda634130b187979b30cf47330464c5d2b6bd /libavcodec/mss2.c
parent920217975407bcb9f9ca9ab98a2e2dcb3a98e05a (diff)
downloadffmpeg-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/mss2.c')
-rw-r--r--libavcodec/mss2.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/mss2.c b/libavcodec/mss2.c
index 1888053eb2..74a25b3e55 100644
--- a/libavcodec/mss2.c
+++ b/libavcodec/mss2.c
@@ -844,7 +844,7 @@ static av_cold int wmv9_init(AVCodecContext *avctx)
v->resync_marker = 0;
v->rangered = 0;
- v->s.max_b_frames = avctx->max_b_frames = 0;
+ v->max_b_frames = avctx->max_b_frames = 0;
v->quantizer_mode = 0;
v->finterpflag = 0;