[FFmpeg-trac] #9705(undetermined:new): Wrong value is written to *.pgm file
FFmpeg
trac at avcodec.org
Wed Mar 30 14:14:44 EEST 2022
#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
More information about the FFmpeg-trac
mailing list