mirror of
https://github.com/nyanmisaka/ffmpeg-rockchip.git
synced 2026-01-23 18:11:11 +01:00
avformat/lrcdec: Fix declaration-after-statement warning
Happens since c0f867bf50.
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
This commit is contained in:
parent
37d3000e3e
commit
bf9f6a5e55
1 changed files with 3 additions and 2 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue