#9705: Wrong value is written to *.pgm file
-------------------------------------+-------------------------------------
             Reporter:  Michael      |                     Type:  defect
  Koch                               |
               Status:  new          |                 Priority:  normal
            Component:               |                  Version:  git-
  undetermined                       |  master
             Keywords:               |               Blocked By:
             Blocking:               |  Reproduced by developer:  0
Analyzed by developer:  0            |
-------------------------------------+-------------------------------------
 If a function in the geq filter evaluates to 'nan', this result is
 silently changed to zero when writing to a *.pgm file. That's not correct.
 Either there should be an error message, or the maximum possible value
 (65535) could be written to indicate that there was a problem.

 Can be reproduced as follows:

 ffmpeg -f lavfi -i nullsrc=size=2x2 -vf
 format=pix_fmts=gray16le,geq='sqrt(-1)' -frames 1 -y test.pgm

 Check the output file with a hex editor. It contains '00 00' for the pixel
 values.
-- 
Ticket URL: <https://trac.ffmpeg.org/ticket/9705>
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