From e859a3c864d57afaed46b99c3eb744b62ab36de4 Mon Sep 17 00:00:00 2001 From: wm4 Date: Tue, 22 Sep 2015 17:40:06 +0200 Subject: [PATCH] avcodec/dvdsubdec: don't use a NULL log context --- libavcodec/dvdsubdec.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavcodec/dvdsubdec.c b/libavcodec/dvdsubdec.c index b7285a428a..6f3fda3a29 100644 --- a/libavcodec/dvdsubdec.c +++ b/libavcodec/dvdsubdec.c @@ -406,7 +406,7 @@ static int decode_dvd_subtitles(DVDSubContext *ctx, AVSubtitle *sub_header, } } if (next_cmd_pos < cmd_pos) { - av_log(NULL, AV_LOG_ERROR, "Invalid command offset\n"); + av_log(ctx, AV_LOG_ERROR, "Invalid command offset\n"); break; } if (next_cmd_pos == cmd_pos) -- GitLab