[FFmpeg-trac] #324(FFmpeg:closed): floating point exception while generation of 1s silence

FFmpeg trac at avcodec.org
Fri Oct 28 02:14:40 CEST 2011


#324: floating point exception while generation of 1s silence
-------------------------------------+-------------------------------------
             Reporter:               |                    Owner:  michael
  Schweinebacke                      |                   Status:  closed
                 Type:  defect       |                Component:  FFmpeg
             Priority:  critical     |               Resolution:  fixed
              Version:  git-master   |               Blocked By:
             Keywords:  fpe          |  Reproduced by developer:  1
  regression                         |
             Blocking:               |
Analyzed by developer:  1            |
-------------------------------------+-------------------------------------
Changes (by saste):

 * analyzed:  0 => 1
 * status:  open => closed
 * resolution:   => fixed


Comment:

 Fixed in commit:
 {{{
 commit aa638b4600e1fa7a1b64323b8228c459af644a47
 Author: Stefano Sabatini <stefasab at gmail.com>
 Date:   Thu Oct 27 01:38:21 2011 +0200

     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.
 }}}

 The user is forced to specify a samplerate, the default value of 0 is
 rejected, and the FPE is thus avoided.

-- 
Ticket URL: <https://ffmpeg.org/trac/ffmpeg/ticket/324#comment:4>
FFmpeg <http://ffmpeg.org>
FFmpeg issue tracker


More information about the FFmpeg-trac mailing list