Vitor <[email protected]> added the comment:
It decodes fine for me too, but I still get valgrind errors (invalid reads) with
latest SVN:
vi...@vitor-laptop:/tmp$ valgrind ffmpeg_g -i Test_G4FAX.tif a.bmp
==23528== Memcheck, a memory error detector.
==23528== Copyright (C) 2002-2007, and GNU GPL'd, by Julian Seward et al.
==23528== Using LibVEX rev 1804, a library for dynamic binary translation.
==23528== Copyright (C) 2004-2007, and GNU GPL'd, by OpenWorks LLP.
==23528== Using valgrind-3.3.0-Debian, a dynamic binary instrumentation
framework.
==23528== Copyright (C) 2000-2007, and GNU GPL'd, by Julian Seward et al.
==23528== For more details, rerun with: -v
==23528==
FFmpeg version SVN-r20191, Copyright (c) 2000-2009 Fabrice Bellard, et al.
built on Oct 8 2009 05:52:14 with gcc 4.2.4 (Ubuntu 4.2.4-1ubuntu4)
configuration: --cc='ccache gcc' --cpu=host
libavutil 50. 3. 0 / 50. 3. 0
libavcodec 52.36. 0 / 52.36. 0
libavformat 52.39. 0 / 52.39. 0
libavdevice 52. 2. 0 / 52. 2. 0
libswscale 0. 7. 1 / 0. 7. 1
==23528== Conditional jump or move depends on uninitialised value(s)
==23528== at 0x831F88C: decode_group3_2d_line (faxcompr.c:231)
==23528==
==23528== Invalid read of size 4
==23528== at 0x831F876: decode_group3_2d_line (faxcompr.c:232)
==23528== Address 0x427b208 is 0 bytes after a block of size 4,104 alloc'd
==23528== at 0x4021A92: memalign (vg_replace_malloc.c:460)
==23528== by 0x4021B3F: posix_memalign (vg_replace_malloc.c:569)
==23528== by 0x84A3184: av_malloc (mem.c:66)
==23528==
==23528== Invalid read of size 4
==23528== at 0x831F874: decode_group3_2d_line (faxcompr.c:232)
==23528== Address 0x427b20c is 4 bytes after a block of size 4,104 alloc'd
==23528== at 0x4021A92: memalign (vg_replace_malloc.c:460)
==23528== by 0x4021B3F: posix_memalign (vg_replace_malloc.c:569)
==23528== by 0x84A3184: av_malloc (mem.c:66)
Input #0, image2, from 'Test_G4FAX.tif':
Duration: 00:00:00.04, start: 0.000000, bitrate: N/A
Stream #0.0: Video: tiff, monob, 1024x768, 25 tbr, 25 tbn, 25 tbc
Output #0, image2, to 'a.bmp':
Stream #0.0: Video: bmp, monob, 1024x768, q=2-31, 200 kb/s, 90k tbn, 25 tbc
Stream mapping:
Stream #0.0 -> #0.0
Press [q] to stop encoding
frame= 1 fps= 0 q=0.0 Lsize= -0kB time=0.04 bitrate= -4.4kbits/s
video:96kB audio:0kB global headers:0kB muxing overhead -100.022365%
==23528==
==23528== ERROR SUMMARY: 22533 errors from 3 contexts (suppressed: 25 from 1)
==23528== malloc/free: in use at exit: 0 bytes in 0 blocks.
==23528== malloc/free: 47 allocs, 47 frees, 5,445,735 bytes allocated.
==23528== For counts of detected errors, rerun with: -v
==23528== All heap blocks were freed -- no leaks are possible.
----------
status: closed -> open
substatus: invalid -> reproduced
_____________________________________________________
FFmpeg issue tracker <[email protected]>
<https://roundup.ffmpeg.org/roundup/ffmpeg/issue1433>
_____________________________________________________