]> git.sesse.net Git - ffmpeg/commitdiff
mjpegenc: use s->avctx as a context for av_log rather than NULL
authorRostislav Pehlivanov <atomnuker@gmail.com>
Thu, 9 Feb 2017 03:01:58 +0000 (03:01 +0000)
committerRostislav Pehlivanov <atomnuker@gmail.com>
Thu, 9 Feb 2017 03:01:58 +0000 (03:01 +0000)
Signed-off-by: Rostislav Pehlivanov <atomnuker@gmail.com>
libavcodec/mjpegenc.c

index 9a97027990e77c214e5aa8c9f8c7aa0bce9ff016..e0f1f838dd63f37c60dc70240c22501dcc4cf52c 100644 (file)
@@ -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);
     }