diff options
author | Andreas Rheinhardt <andreas.rheinhardt@outlook.com> | 2023-07-29 17:58:58 +0200 |
---|---|---|
committer | Andreas Rheinhardt <andreas.rheinhardt@outlook.com> | 2023-07-29 17:58:58 +0200 |
commit | bf9f6a5e559c901453b484a606e27af54d7e93d5 (patch) | |
tree | 777491f41bca8d7ee1f9c9c18cc283ad4b0c2717 | |
parent | 37d3000e3ed790543505ebd80617fa6a60e213da (diff) | |
download | ffmpeg-bf9f6a5e559c901453b484a606e27af54d7e93d5.tar.gz |
avformat/lrcdec: Fix declaration-after-statement warning
Happens since c0f867bf503e79eba8ee52e1ac53322f88ec2929.
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
-rw-r--r-- | libavformat/lrcdec.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/libavformat/lrcdec.c b/libavformat/lrcdec.c index 83bb4a4b75..f43e9dccf5 100644 --- a/libavformat/lrcdec.c +++ b/libavformat/lrcdec.c @@ -170,10 +170,11 @@ static int lrc_read_header(AVFormatContext *s) av_bprint_init(&line, 0, AV_BPRINT_SIZE_UNLIMITED); while(!avio_feof(s->pb)) { - int64_t pos = read_line(&line, s->pb); + int64_t header_offset, pos = read_line(&line, s->pb); + if (!av_bprint_is_complete(&line)) goto err_nomem_out; - int64_t header_offset = find_header(line.str); + header_offset = find_header(line.str); if(header_offset >= 0) { char *comma_offset = strchr(line.str, ':'); if(comma_offset) { |