Message ID | GV1P250MB073782944B7E5A3A0007543E8F07A@GV1P250MB0737.EURP250.PROD.OUTLOOK.COM |
---|---|
State | Accepted |
Commit | bf9f6a5e559c901453b484a606e27af54d7e93d5 |
Headers | show |
Series | [FFmpeg-devel] avformat/lrcdec: Fix declaration-after-statement warning | expand |
Context | Check | Description |
---|---|---|
yinshiyou/make_loongarch64 | success | Make finished |
yinshiyou/make_fate_loongarch64 | success | Make fate finished |
andriy/make_x86 | success | Make finished |
andriy/make_fate_x86 | success | Make fate finished |
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) {
Happens since c0f867bf503e79eba8ee52e1ac53322f88ec2929. Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com> --- Will apply this soon. libavformat/lrcdec.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-)