mirror of https://github.com/FFmpeg/FFmpeg.git
Prevent error condition in case sample_rate is unset or set to a negative value. In particular, fix divide-by-zero error occurring in ffmpeg due to sample_rate set to 0 in output_packet(), in code: ist->next_pts += ((int64_t)AV_TIME_BASE * ist->st->codec->frame_size) / ist->st->codec->sample_rate; Fix trac ticket #324.pull/2/head
parent
8dc90371b1
commit
aa638b4600
1 changed files with 6 additions and 0 deletions
Loading…
Reference in new issue