summaryrefslogtreecommitdiff
path: root/libavcodec/dca.c
diff options
context:
space:
mode:
authorStefano Sabatini <stefasab@gmail.com>2011-10-27 01:38:21 +0200
committerStefano Sabatini <stefasab@gmail.com>2011-10-28 02:06:50 +0200
commitaa638b4600e1fa7a1b64323b8228c459af644a47 (patch)
tree7275907eaf60021d6b636af6ee558099ed6212bf /libavcodec/dca.c
parent8dc90371b1d0dac0a9417890d1a3dfcd9f31559b (diff)
downloadffmpeg-aa638b4600e1fa7a1b64323b8228c459af644a47.tar.gz
rawdec: add check on sample_rate
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.
Diffstat (limited to 'libavcodec/dca.c')
0 files changed, 0 insertions, 0 deletions