Opened 13 years ago

Closed 12 years ago

Last modified 12 years ago

#832 closed defect (fixed)

tiff: support G3FAX1D

Reported by: ami_stuff Owned by:
Priority: normal Component: avcodec
Version: git-master Keywords: tif fax roundup
Cc: Blocked By:
Blocking: Reproduced by developer: yes
Analyzed by developer: no

Description

attached "hack" allows decoding files from issue 1432

http://www.voy.com/5188/466.html

C:\>ffmpeg -i Test_G3FAX1D.tif
ffmpeg version N-36088-gdd1fb65, Copyright (c) 2000-2011 the FFmpeg developers
  built on Dec 22 2011 12:39:23 with gcc 4.6.2
  configuration: --enable-gpl --enable-version3 --disable-w32threads --enable-ru
ntime-cpudetect --enable-avisynth --enable-bzlib --enable-frei0r --enable-libope
ncore-amrnb --enable-libopencore-amrwb --enable-libfreetype --enable-libgsm --en
able-libmp3lame --enable-libopenjpeg --enable-librtmp --enable-libschroedinger -
-enable-libspeex --enable-libtheora --enable-libvo-aacenc --enable-libvo-amrwben
c --enable-libvorbis --enable-libvpx --enable-libx264 --enable-libxavs --enable-
libxvid --enable-zlib
  libavutil      51. 32.100 / 51. 32.100
  libavcodec     53. 47.100 / 53. 47.100
  libavformat    53. 28.100 / 53. 28.100
  libavdevice    53.  4.100 / 53.  4.100
  libavfilter     2. 53.  0 /  2. 53.  0
  libswscale      2.  1.100 /  2.  1.100
  libswresample   0.  5.100 /  0.  0.100
  libpostproc    51.  2.100 / 51.  2.100
Input #0, image2, from 'Test_G3FAX1D.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
At least one output file must be specified

Attachments (3)

g3fax1d.diff (689 bytes ) - added by ami_stuff 13 years ago.
Test_G3FAX1D.tif (41.8 KB ) - added by ami_stuff 13 years ago.
CCITTFax3.tif (89.4 KB ) - added by ami_stuff 13 years ago.

Download all attachments as: .zip

Change History (8)

by ami_stuff, 13 years ago

Attachment: g3fax1d.diff added

by ami_stuff, 13 years ago

Attachment: Test_G3FAX1D.tif added

comment:1 by Carl Eugen Hoyos, 13 years ago

Component: undeterminedavcodec
Keywords: tif fax added
Reproduced by developer: set
Status: newopen
Version: unspecifiedgit-master

comment:2 by reimar, 13 years ago

If instead of commenting out, you change the condition to:
if(compr!=TIFF_CCITT_RLE && !g3d1 && find_group3_syncmarker(&gb, srcsize*8) < 0)
Does this then fix the issue without breaking any other of you fax samples?

comment:3 by ami_stuff, 13 years ago

It breaks "CCITT Fax3" saved with IrfanView, sample attached.

by ami_stuff, 13 years ago

Attachment: CCITTFax3.tif added

comment:4 by Michael Niedermayer, 12 years ago

Resolution: fixed
Status: openclosed

comment:5 by Carl Eugen Hoyos, 12 years ago

Keywords: roundup added
Note: See TracTickets for help on using tickets.