@@ -2368,7 +2368,7 @@ static void reset_icc_profile(MJpegDecodeContext *s)
}
int ff_mjpeg_decode_frame_from_buf(AVCodecContext *avctx, AVFrame *frame,
- int *got_frame, const AVPacket *avpkt,
+ int *got_frame,
const uint8_t *buf, const int buf_size)
{
MJpegDecodeContext *s = avctx->priv_data;
@@ -2926,7 +2926,7 @@ int ff_mjpeg_decode_frame(AVCodecContext *avctx, AVFrame *frame, int *got_frame,
AVPacket *avpkt)
{
return ff_mjpeg_decode_frame_from_buf(avctx, frame, got_frame,
- avpkt, avpkt->data, avpkt->size);
+ avpkt->data, avpkt->size);
}
@@ -176,7 +176,7 @@ int ff_mjpeg_decode_frame(AVCodecContext *avctx,
AVPacket *avpkt);
int ff_mjpeg_decode_frame_from_buf(AVCodecContext *avctx,
AVFrame *frame, int *got_frame,
- const AVPacket *avpkt, const uint8_t *buf, int buf_size);
+ const uint8_t *buf, int buf_size);
int ff_mjpeg_decode_dqt(MJpegDecodeContext *s);
int ff_mjpeg_decode_dht(MJpegDecodeContext *s);
int ff_mjpeg_decode_sof(MJpegDecodeContext *s);
@@ -86,7 +86,7 @@ static int sp5x_decode_frame(AVCodecContext *avctx,
recoded[j++] = 0xD9;
ret = ff_mjpeg_decode_frame_from_buf(avctx, frame, got_frame,
- avpkt, recoded, j);
+ recoded, j);
av_free(recoded);
Signed-off-by: James Almer <jamrial@gmail.com> --- libavcodec/mjpegdec.c | 4 ++-- libavcodec/mjpegdec.h | 2 +- libavcodec/sp5xdec.c | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-)