Opened 13 years ago

Closed 13 years ago

Last modified 12 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 13 years ago.
3.mov (856.8 KB ) - added by ami_stuff 13 years ago.

Download all attachments as: .zip

Change History (9)

by ami_stuff, 13 years ago

Attachment: Test_4bpp.png added

comment:1 by ami_stuff, 13 years ago

I belive this is the same issue:

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

by ami_stuff, 13 years ago

Attachment: 3.mov added

comment:2 by Carl Eugen Hoyos, 13 years ago

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

comment:3 by Stefano Sabatini, 13 years ago

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 by ami_stuff, 13 years ago

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 by ami_stuff, 13 years ago

3.mov is a quicktime movie, not image

comment:6 by Michael Niedermayer, 13 years ago

Resolution: fixed
Status: openclosed

Fixed locally will push in a moment

comment:7 by Carl Eugen Hoyos, 12 years ago

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