#9595: av_add_q(1/-1, -1/0) returns 1/0
---------------------------------+---------------------------------------
             Reporter:  namniav  |                     Type:  defect
               Status:  new      |                 Priority:  normal
            Component:  avutil   |                  Version:  unspecified
             Keywords:           |               Blocked By:
             Blocking:           |  Reproduced by developer:  0
Analyzed by developer:  0        |
---------------------------------+---------------------------------------
 Summary of the bug:

 https://ffmpeg.org/doxygen/4.1/rational_8c_source.html#l00093

 av_add_q(1/-1, -1/0) incorrectly returns 1/0.
 Adding -1 to -inf should be -inf, not inf.

 Do I have to keep AVRationals in reduced normalized form?
-- 
Ticket URL: <https://trac.ffmpeg.org/ticket/9595>
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