mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-02-04 06:08:26 +02:00
lavf/wav: Read files >4G if no smaller filesize was written.
Fixes second part of ticket #4543.
This commit is contained in:
parent
2608f11863
commit
2acc065653
@ -335,9 +335,14 @@ static int wav_read_header(AVFormatContext *s)
|
||||
|
||||
if (rf64) {
|
||||
next_tag_ofs = wav->data_end = avio_tell(pb) + data_size;
|
||||
} else {
|
||||
} else if (size != 0xFFFFFFFF) {
|
||||
data_size = size;
|
||||
next_tag_ofs = wav->data_end = size ? next_tag_ofs : INT64_MAX;
|
||||
} else {
|
||||
av_log(s, AV_LOG_WARNING, "Ignoring maximum wav data size, "
|
||||
"file may be invalid\n");
|
||||
data_size = 0;
|
||||
next_tag_ofs = wav->data_end = INT64_MAX;
|
||||
}
|
||||
|
||||
data_ofs = avio_tell(pb);
|
||||
|
Loading…
x
Reference in New Issue
Block a user