[FFmpeg-cvslog] avcodec/mjpegenc_common: Use AVCodecContext.codec_id directly
Andreas Rheinhardt
git at videolan.org
Tue Jan 4 18:20:38 EET 2022
ffmpeg | branch: master | Andreas Rheinhardt <andreas.rheinhardt at outlook.com> | Wed Dec 22 03:41:48 2021 +0100| [cbbd5e063dc5f2d4778e46c4d284a90512893007] | committer: Andreas Rheinhardt
avcodec/mjpegenc_common: Use AVCodecContext.codec_id directly
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt at outlook.com>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=cbbd5e063dc5f2d4778e46c4d284a90512893007
---
libavcodec/mjpegenc_common.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/libavcodec/mjpegenc_common.c b/libavcodec/mjpegenc_common.c
index 27438df5eb..995e2b7670 100644
--- a/libavcodec/mjpegenc_common.c
+++ b/libavcodec/mjpegenc_common.c
@@ -188,7 +188,7 @@ static void jpeg_put_comments(AVCodecContext *avctx, PutBitContext *p)
void ff_mjpeg_init_hvsample(AVCodecContext *avctx, int hsample[4], int vsample[4])
{
- if (avctx->codec->id == AV_CODEC_ID_LJPEG &&
+ if (avctx->codec_id == AV_CODEC_ID_LJPEG &&
( avctx->pix_fmt == AV_PIX_FMT_BGR0
|| avctx->pix_fmt == AV_PIX_FMT_BGRA
|| avctx->pix_fmt == AV_PIX_FMT_BGR24)) {
More information about the ffmpeg-cvslog
mailing list