diff options
author | Andreas Rheinhardt <andreas.rheinhardt@outlook.com> | 2022-07-23 18:55:08 +0200 |
---|---|---|
committer | Andreas Rheinhardt <andreas.rheinhardt@outlook.com> | 2022-07-23 19:01:44 +0200 |
commit | 30c7cff399334b8924c7461a5c128e23d0cc3680 (patch) | |
tree | 333d1219f8af95ade21518647304bee3ac72cdac /libavformat | |
parent | b0ae5d02f3664545e54c8ce0101037619c4fa7e6 (diff) | |
download | ffmpeg-30c7cff399334b8924c7461a5c128e23d0cc3680.tar.gz |
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>
Diffstat (limited to 'libavformat')
-rw-r--r-- | libavformat/lrcenc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/lrcenc.c b/libavformat/lrcenc.c index cdf94e6cd2..f7a5a6982d 100644 --- a/libavformat/lrcenc.c +++ b/libavformat/lrcenc.c @@ -105,7 +105,7 @@ static int lrc_write_packet(AVFormatContext *s, AVPacket *pkt) size--; next_line++; } - if(line[0] == '[') { + if (size && line[0] == '[') { av_log(s, AV_LOG_WARNING, "Subtitle starts with '[', may cause problems with LRC format.\n"); } |