[FFmpeg-cvslog] mjpegenc: use s->avctx as a context for av_log rather than NULL
Rostislav Pehlivanov
git at videolan.org
Thu Feb 9 05:02:26 EET 2017
ffmpeg | branch: master | Rostislav Pehlivanov <atomnuker at gmail.com> | Thu Feb 9 03:01:58 2017 +0000| [a70f0927ea45662b5ad503fa9c2368911defcf80] | committer: Rostislav Pehlivanov
mjpegenc: use s->avctx as a context for av_log rather than NULL
Signed-off-by: Rostislav Pehlivanov <atomnuker at gmail.com>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=a70f0927ea45662b5ad503fa9c2368911defcf80
---
libavcodec/mjpegenc.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/libavcodec/mjpegenc.c b/libavcodec/mjpegenc.c
index 9a97027..e0f1f83 100644
--- a/libavcodec/mjpegenc.c
+++ b/libavcodec/mjpegenc.c
@@ -280,7 +280,7 @@ int ff_mjpeg_encode_mb(MpegEncContext *s, int16_t block[12][64])
// one with the fewest bits will work properly here.
if (s->i_tex_bits != MJPEG_HUFFMAN_EST_BITS_PER_CODE *
s->mjpeg_ctx->huff_ncode) {
- av_log(NULL, AV_LOG_ERROR, "Unsupported encoding method\n");
+ av_log(s->avctx, AV_LOG_ERROR, "Unsupported encoding method\n");
return AVERROR(EINVAL);
}
More information about the ffmpeg-cvslog
mailing list