avcodec/dvdsubdec: don't use a NULL log context
authorwm4 <nfxjfg@googlemail.com>
Tue, 22 Sep 2015 15:40:06 +0000 (17:40 +0200)
committerwm4 <nfxjfg@googlemail.com>
Tue, 22 Sep 2015 15:41:01 +0000 (17:41 +0200)
libavcodec/dvdsubdec.c

index b7285a4..6f3fda3 100644 (file)
@@ -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)