summaryrefslogtreecommitdiff
path: root/libavcodec/mjpegdec.h
diff options
context:
space:
mode:
authorAndreas Rheinhardt <andreas.rheinhardt@gmail.com>2021-02-10 00:20:26 +0100
committerAndreas Rheinhardt <andreas.rheinhardt@gmail.com>2021-02-23 10:14:25 +0100
commitd26198ada3279e9d7ef5d3d2cca13b0eff5144f0 (patch)
tree9660cec663e721d0e8a6629a0d23cb7e0a747827 /libavcodec/mjpegdec.h
parentf180f515de4428e56514a86ea76eaa13e472f87c (diff)
downloadffmpeg-d26198ada3279e9d7ef5d3d2cca13b0eff5144f0.tar.gz
avcodec/g2meet, mjpegdec: Factor out common VLC initialization code
While just at it, remove the nb_codes parameter: It is redundant (the number of codes is implicitly contained in the array containing how many entries of a specific size there are) and for this reason it might even be wrong, so it is better to check what is actually used instead. Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
Diffstat (limited to 'libavcodec/mjpegdec.h')
-rw-r--r--libavcodec/mjpegdec.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/libavcodec/mjpegdec.h b/libavcodec/mjpegdec.h
index a824b5029c..732aeab994 100644
--- a/libavcodec/mjpegdec.h
+++ b/libavcodec/mjpegdec.h
@@ -161,6 +161,8 @@ typedef struct MJpegDecodeContext {
void *hwaccel_picture_private;
} MJpegDecodeContext;
+int ff_mjpeg_build_vlc(VLC *vlc, const uint8_t *bits_table,
+ const uint8_t *val_table, int is_ac, void *logctx);
int ff_mjpeg_decode_init(AVCodecContext *avctx);
int ff_mjpeg_decode_end(AVCodecContext *avctx);
int ff_mjpeg_receive_frame(AVCodecContext *avctx, AVFrame *frame);