Opened 5 years ago

Closed 5 years ago

Last modified 5 years ago

#208 closed defect (fixed)

png 4bpp file decodes incorrectly

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

Description

This may be the same problem like with ticket 172, but now with 4bpp png file.

The same problem happens with 4bpp grayscale.

C:\>ffmpeg -i Test_4bpp.png
ffmpeg version git-N-29946-g27614b1, Copyright (c) 2000-2011 the FFmpeg develope
rs
  built on May 15 2011 14:55:24 with gcc 4.5.3
  configuration: --enable-gpl --enable-version3 --enable-memalign-hack --enable-
runtime-cpudetect --enable-avisynth --enable-bzlib --enable-frei0r --enable-libo
pencore-amrnb --enable-libopencore-amrwb --enable-libfreetype --enable-libgsm --
enable-libmp3lame --enable-libopenjpeg --enable-librtmp --enable-libschroedinger
 --enable-libspeex --enable-libtheora --enable-libvorbis --enable-libvpx --enabl
e-libx264 --enable-libxavs --enable-libxvid --enable-zlib --pkg-config=pkg-confi
g
  libavutil    51.  2. 1 / 51.  2. 1
  libavcodec   53.  5. 0 / 53.  5. 0
  libavformat  53.  0. 3 / 53.  0. 3
  libavdevice  53.  0. 0 / 53.  0. 0
  libavfilter   2.  5. 0 /  2.  5. 0
  libswscale    0. 14. 0 /  0. 14. 0
  libpostproc  51.  2. 0 / 51.  2. 0
Input #0, image2, from 'Test_4bpp.png':
  Duration: 00:00:00.04, start: 0.000000, bitrate: N/A
    Stream #0.0: Video: png, pal8, 1024x768, 25 tbr, 25 tbn, 25 tbc
At least one output file must be specified

Attachments (2)

Test_4bpp.png (176.7 KB) - added by ami_stuff 5 years ago.
3.mov (856.8 KB) - added by ami_stuff 5 years ago.

Download all attachments as: .zip

Change History (9)

Changed 5 years ago by ami_stuff

comment:1 Changed 5 years ago by ami_stuff

I belive this is the same issue:

3.mov: png, 16colors (4bpp), filter NONE

Changed 5 years ago by ami_stuff

comment:2 Changed 5 years ago by cehoyos

  • Component changed from undetermined to avcodec
  • Reproduced by developer set
  • Status changed from new to open
  • Version changed from unspecified to git-master

comment:3 Changed 5 years ago by saste

Decoding for these kind of files needs to be yet implemented:

/* TODO:

  • - add 2, 4 and 16 bit depth support */

And I can't open 3.mov (tried with display from ImageMagik?), sure you posted the right file?

comment:4 Changed 5 years ago by ami_stuff

works fine here, but sometimes trac outputs broken files for me, so maybe this is a problem

try this:

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

comment:5 Changed 5 years ago by ami_stuff

3.mov is a quicktime movie, not image

comment:6 Changed 5 years ago by michael

  • Resolution set to fixed
  • Status changed from open to closed

Fixed locally will push in a moment

comment:7 Changed 5 years ago by cehoyos

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