You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-15 14:13:16 +02:00
avformat/lrcenc: Avoid reading packet padding
(Everything would be fine if the packet was properly padded.) Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
This commit is contained in:
@@ -105,7 +105,7 @@ static int lrc_write_packet(AVFormatContext *s, AVPacket *pkt)
|
|||||||
size--;
|
size--;
|
||||||
next_line++;
|
next_line++;
|
||||||
}
|
}
|
||||||
if(line[0] == '[') {
|
if (size && line[0] == '[') {
|
||||||
av_log(s, AV_LOG_WARNING,
|
av_log(s, AV_LOG_WARNING,
|
||||||
"Subtitle starts with '[', may cause problems with LRC format.\n");
|
"Subtitle starts with '[', may cause problems with LRC format.\n");
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user