mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-01-08 13:22:53 +02:00
electronicarts: Fix division by zero. Fixes Ticket #793
Signed-off-by: Oana Stratulat <oanaandreeastratulat@gmail.com> Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
ad1c8dd673
commit
0d3a51e5d2
@ -221,6 +221,10 @@ static int process_audio_header_eacs(AVFormatContext *s)
|
||||
|
||||
ea->sample_rate = ea->big_endian ? avio_rb32(pb) : avio_rl32(pb);
|
||||
ea->bytes = avio_r8(pb); /* 1=8-bit, 2=16-bit */
|
||||
if(ea->bytes == 0){
|
||||
av_log(s,AV_LOG_ERROR,"the file is corrupted, ea->bytes = 0\n");
|
||||
return AVERROR_INVALIDDATA;
|
||||
}
|
||||
ea->num_channels = avio_r8(pb);
|
||||
compression_type = avio_r8(pb);
|
||||
avio_skip(pb, 13);
|
||||
|
Loading…
Reference in New Issue
Block a user