mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-01-13 21:28:01 +02:00
wav: init st to NULL to avoid a false-positive warning.
If st is NULL, it means no 'fmt ' tag is found, but 'data' tag (which needs a previous 'fmt ' tag to be parsed correctly and st initialized) check will make sure st is never dereferenced in that case.
This commit is contained in:
parent
0baf651bc1
commit
3dd2c8bbbc
@ -387,7 +387,7 @@ static int wav_read_header(AVFormatContext *s,
|
||||
int rf64;
|
||||
unsigned int tag;
|
||||
AVIOContext *pb = s->pb;
|
||||
AVStream *st;
|
||||
AVStream *st = NULL;
|
||||
WAVContext *wav = s->priv_data;
|
||||
int ret, got_fmt = 0;
|
||||
int64_t next_tag_ofs, data_ofs = -1;
|
||||
|
Loading…
Reference in New Issue
Block a user