summaryrefslogtreecommitdiff
path: root/libavcodec/mjpegenc.c
diff options
context:
space:
mode:
authorRostislav Pehlivanov <atomnuker@gmail.com>2017-02-09 03:01:58 +0000
committerRostislav Pehlivanov <atomnuker@gmail.com>2017-02-09 03:01:58 +0000
commita70f0927ea45662b5ad503fa9c2368911defcf80 (patch)
treefb93c580a23e58a853ca55c5f20970a99e4d1d20 /libavcodec/mjpegenc.c
parent20614e868b9061d86dd390c31b9e14430e84c31e (diff)
mjpegenc: use s->avctx as a context for av_log rather than NULL
Signed-off-by: Rostislav Pehlivanov <atomnuker@gmail.com>
Diffstat (limited to 'libavcodec/mjpegenc.c')
-rw-r--r--libavcodec/mjpegenc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/mjpegenc.c b/libavcodec/mjpegenc.c
index 9a97027990..e0f1f838dd 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);
}