X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=libavcodec%2Fdvdsubdec.c;h=6f3fda3a294907a9bf7c02962dbd1ed49a33e1d8;hb=a35f6bdb38aa140ad127f207dbead1a88594915f;hp=b7285a428ab01f48c4d5bd17d4fefef4f4727749;hpb=9aab22223908180cbfc3c5fa1b19b58d806b5097;p=ffmpeg diff --git a/libavcodec/dvdsubdec.c b/libavcodec/dvdsubdec.c index b7285a428ab..6f3fda3a294 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)