[FFmpeg-trac] #9164(undetermined:new): Blackdetect filter PTS return limited to six digits

FFmpeg trac at avcodec.org
Sat Mar 27 01:22:47 EET 2021


#9164: Blackdetect filter PTS return limited to six digits
-------------------------------------+-------------------------------------
             Reporter:               |                    Owner:
  livingroomg3                       |
                 Type:  enhancement  |                   Status:  new
             Priority:  normal       |                Component:
                                     |  undetermined
              Version:  unspecified  |               Resolution:
             Keywords:               |               Blocked By:
             Blocking:               |  Reproduced by developer:  0
Analyzed by developer:  0            |
-------------------------------------+-------------------------------------

Comment (by livingroomg3):

 This is the issue:

 snprintf(buf, AV_TS_MAX_STRING_SIZE, "%.6g", av_q2d(*tb) * ts)

 in https://github.com/FFmpeg/FFmpeg/blob/master/libavutil/timestamp.h

 was truncating the PTS return to six significant digits. Should be

 snprintf(buf, AV_TS_MAX_STRING_SIZE, "%.6f", av_q2d(*tb) * ts)

 Haven't done full regression testing yet, but this affects all pts/ts
 returns for things like scene detect, black detect, etc.?

--
Ticket URL: <https://trac.ffmpeg.org/ticket/9164#comment:3>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker


More information about the FFmpeg-trac mailing list