summaryrefslogtreecommitdiff
path: root/libavcodec/mjpegenc.c
diff options
context:
space:
mode:
authorAndreas Rheinhardt <andreas.rheinhardt@outlook.com>2021-12-22 02:28:04 +0100
committerAndreas Rheinhardt <andreas.rheinhardt@outlook.com>2022-01-04 16:28:54 +0100
commit8a0981d0131e648c84e9996bd024d5cdbd791599 (patch)
tree63c04b28a26513731f268882b9a507b4c2d215dd /libavcodec/mjpegenc.c
parent7aee9e326f7f3105f9477d92742edae6d83c9a14 (diff)
avcodec/mjpegenc_common: Pass MJpegContext for writing picture header
It is the structure that is actually used. Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
Diffstat (limited to 'libavcodec/mjpegenc.c')
-rw-r--r--libavcodec/mjpegenc.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/libavcodec/mjpegenc.c b/libavcodec/mjpegenc.c
index be3671d13c..d15b9ece50 100644
--- a/libavcodec/mjpegenc.c
+++ b/libavcodec/mjpegenc.c
@@ -76,8 +76,9 @@ static av_cold void init_uni_ac_vlc(const uint8_t huff_size_ac[256],
static void mjpeg_encode_picture_header(MpegEncContext *s)
{
- ff_mjpeg_encode_picture_header(s->avctx, &s->pb, &s->intra_scantable,
- 0, s->intra_matrix, s->chroma_intra_matrix);
+ ff_mjpeg_encode_picture_header(s->avctx, &s->pb, s->mjpeg_ctx,
+ &s->intra_scantable, 0,
+ s->intra_matrix, s->chroma_intra_matrix);
s->esc_pos = put_bytes_count(&s->pb, 0);
for (int i = 1; i < s->slice_context_count; i++)