Opened 12 years ago

Closed 12 years ago

#1995 closed defect (fixed)

tiff: support tiff packbits with inverted FillOrder

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

Description

I belive attached pic have inverte FillOder, decodes ok with ImageMagick/IrfanView.

See also ticket #168

http://www.datafilehost.com/download-0f7689e2.html

C:\>ffmpeg -i packbits.tif out.bmp
ffmpeg version N-47325-gb90e795 Copyright (c) 2000-2012 the FFmpeg developers
  built on Dec  1 2012 02:23:25 with gcc 4.5.0 (GCC) 20100414 (Fedora MinGW 4.5.
0-1.fc14)
  configuration: --prefix=/var/www/users/research/ffmpeg/snapshots/build --arch=
x86 --target-os=mingw32 --cross-prefix=i686-pc-mingw32- --cc='ccache i686-pc-min
gw32-gcc' --enable-w32threads --enable-memalign-hack --enable-runtime-cpudetect
--enable-cross-compile --enable-static --disable-shared --extra-libs='-lws2_32 -
lwinmm -lpthread' --extra-cflags='--static -I/var/www/users/research/ffmpeg/snap
shots/build/include' --extra-ldflags='-static -L/var/www/users/research/ffmpeg/s
napshots/build/lib' --enable-bzlib --enable-zlib --enable-gpl --enable-version3
--enable-nonfree --enable-libx264 --enable-libspeex --enable-libtheora --enable-
libvorbis --enable-libfaac --enable-libxvid --enable-libopencore-amrnb --enable-
libopencore-amrwb --enable-libmp3lame --enable-libvpx --disable-decoder=libvpx
  libavutil      52. 10.100 / 52. 10.100
  libavcodec     54. 78.100 / 54. 78.100
  libavformat    54. 41.100 / 54. 41.100
  libavdevice    54.  3.101 / 54.  3.101
  libavfilter     3. 23.104 /  3. 23.104
  libswscale      2.  1.103 /  2.  1.103
  libswresample   0. 17.101 /  0. 17.101
  libpostproc    52.  2.100 / 52.  2.100
[tiff @ 0x1eec9a0] Copy went out of bounds
Input #0, image2, from 'packbits.tif':
  Duration: 00:00:00.04, start: 0.000000, bitrate: N/A
    Stream #0:0: Video: tiff, rgb24, 1024x768, 25 tbr, 25 tbn, 25 tbc
Output #0, image2, to 'out.bmp':
  Metadata:
    encoder         : Lavf54.41.100
    Stream #0:0: Video: bmp, bgr24, 1024x768, q=2-31, 200 kb/s, 90k tbn, 25 tbc
Stream mapping:
  Stream #0:0 -> #0:0 (tiff -> bmp)
Press [q] to stop, [?] for help
[tiff @ 0x1eec9a0] Copy went out of bounds
frame=    1 fps=0.0 q=0.0 Lsize=       0kB time=00:00:00.04 bitrate=   0.0kbits/
s
video:2304kB audio:0kB subtitle:0 global headers:0kB muxing overhead -100.000000
%

Attachments (3)

packbits.diff (900 bytes ) - added by ami_stuff 12 years ago.
packbits.tif (2.2 MB ) - added by Carl Eugen Hoyos 12 years ago.
packbits_lsb2msb.tif (2.3 MB ) - added by Carl Eugen Hoyos 12 years ago.

Change History (6)

comment:1 by Carl Eugen Hoyos, 12 years ago

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

by ami_stuff, 12 years ago

Attachment: packbits.diff added

comment:2 by ami_stuff, 12 years ago

another sample:

http://www.datafilehost.com/download-ab990d2f.html

maybe someone can fix attached buggy patch

by Carl Eugen Hoyos, 12 years ago

Attachment: packbits.tif added

by Carl Eugen Hoyos, 12 years ago

Attachment: packbits_lsb2msb.tif added

comment:3 by Carl Eugen Hoyos, 12 years ago

Resolution: fixed
Status: openclosed

Fixed by Paul B Mahol.

Note: See TracTickets for help on using tickets.