[FFmpeg-trac] #5044(avformat:new): overflow in mpegtsenc cbr period calculations

FFmpeg trac at avcodec.org
Fri Nov 27 19:12:23 CET 2015


#5044: overflow in mpegtsenc cbr period calculations
----------------------------------+---------------------------------------
             Reporter:  fabled    |                     Type:  defect
               Status:  new       |                 Priority:  normal
            Component:  avformat  |                  Version:  unspecified
             Keywords:            |               Blocked By:
             Blocking:            |  Reproduced by developer:  0
Analyzed by developer:  0         |
----------------------------------+---------------------------------------
 ts->mux_rate is int (signed 32-bit) type. many of the calculations will
 overflow when mux_rate > 5mbps.
 see attached patch to use av_rescale instead.

--
Ticket URL: <https://trac.ffmpeg.org/ticket/5044>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker


More information about the FFmpeg-trac mailing list