From: James Almer <jamrial@gmail.com> To: ffmpeg-devel@ffmpeg.org Subject: [FFmpeg-devel] [PATCH] avcodec/mjpegdec: remove unused parameter from ff_mjpeg_decode_frame_from_buf Date: Mon, 1 Jul 2024 15:57:00 -0300 Message-ID: <20240701185700.3700-1-jamrial@gmail.com> (raw) 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(-) diff --git a/libavcodec/mjpegdec.c b/libavcodec/mjpegdec.c index 7daec649bc..ace25af90e 100644 --- a/libavcodec/mjpegdec.c +++ b/libavcodec/mjpegdec.c @@ -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); } diff --git a/libavcodec/mjpegdec.h b/libavcodec/mjpegdec.h index 13c524d597..6c34761cde 100644 --- a/libavcodec/mjpegdec.h +++ b/libavcodec/mjpegdec.h @@ -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); diff --git a/libavcodec/sp5xdec.c b/libavcodec/sp5xdec.c index 8dda5b6152..6b9723b4c2 100644 --- a/libavcodec/sp5xdec.c +++ b/libavcodec/sp5xdec.c @@ -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); -- 2.45.2 _______________________________________________ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org https://ffmpeg.org/mailman/listinfo/ffmpeg-devel To unsubscribe, visit link above, or email ffmpeg-devel-request@ffmpeg.org with subject "unsubscribe".
reply other threads:[~2024-07-01 18:57 UTC|newest] Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=20240701185700.3700-1-jamrial@gmail.com \ --to=jamrial@gmail.com \ --cc=ffmpeg-devel@ffmpeg.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: link
Git Inbox Mirror of the ffmpeg-devel mailing list - see https://ffmpeg.org/mailman/listinfo/ffmpeg-devel This inbox may be cloned and mirrored by anyone: git clone --mirror https://master.gitmailbox.com/ffmpegdev/0 ffmpegdev/git/0.git # If you have public-inbox 1.1+ installed, you may # initialize and index your mirror using the following commands: public-inbox-init -V2 ffmpegdev ffmpegdev/ https://master.gitmailbox.com/ffmpegdev \ ffmpegdev@gitmailbox.com public-inbox-index ffmpegdev Example config snippet for mirrors. AGPL code for this site: git clone https://public-inbox.org/public-inbox.git