[FFmpeg-trac] #9595(avutil:closed): av_add_q(0/-1, -1/0) returns 1/0
FFmpeg
trac at avcodec.org
Tue Jan 11 13:02:05 EET 2022
#9595: av_add_q(0/-1, -1/0) returns 1/0
-------------------------------------+-----------------------------------
Reporter: namniav | Owner: (none)
Type: defect | Status: closed
Priority: normal | Component: avutil
Version: unspecified | Resolution: invalid
Keywords: | Blocked By:
Blocking: | Reproduced by developer: 0
Analyzed by developer: 0 |
-------------------------------------+-----------------------------------
Changes (by Nicolas George):
* status: new => closed
* resolution: => invalid
Comment:
1. The doc says `Add two rationals.`, neither +∞ nor -∞ are rationals.
2. Anyway, integer 0 does not have a sign, so -1/0 is the same as -1/-0,
i.e. 1/0.
--
Ticket URL: <https://trac.ffmpeg.org/ticket/9595#comment:2>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker
More information about the FFmpeg-trac
mailing list