Avoid division by zero
This commit is contained in:
parent
78213a0c32
commit
0e3bb41869
1 changed files with 3 additions and 0 deletions
|
@ -71,6 +71,9 @@ read_audio_specific_config(elementary_stream_t *st, latm_private_t *latm,
|
|||
else
|
||||
sr = sri_to_rate(latm->sample_rate_index);
|
||||
|
||||
if(sr == 0)
|
||||
return;
|
||||
|
||||
st->es_frame_duration = 1024 * 90000 / sr;
|
||||
|
||||
latm->channel_config = read_bits(bs, 4);
|
||||
|
|
Loading…
Add table
Reference in a new issue