#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:4>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker
_______________________________________________
FFmpeg-trac mailing list
[email protected]
https://ffmpeg.org/mailman/listinfo/ffmpeg-trac

To unsubscribe, visit link above, or email
[email protected] with subject "unsubscribe".

Reply via email to