avformat/vobsub: fix NULL dereference

This commit is contained in:
Clément Bœsch 2014-09-13 15:15:32 +02:00
parent 8572dbc5db
commit d86cf4a91d

View File

@ -783,7 +783,7 @@ static int vobsub_read_header(AVFormatContext *s)
while (*p == ' ') while (*p == ' ')
p++; p++;
av_log(s, AV_LOG_DEBUG, "IDX stream[%d] name=%s\n", st->id, p); av_log(s, AV_LOG_DEBUG, "IDX stream[%d] name=%s\n", stream_id, p);
av_strlcpy(alt, p, sizeof(alt)); av_strlcpy(alt, p, sizeof(alt));
header_parsed = 1; header_parsed = 1;