Opened 4 years ago

Closed 4 years ago

#4615 closed defect (fixed)

jpeg 2000: Incorrect decoding of tiny image

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

Description

I will attach a 3x5 pixel gray jpeg 2000 sample that decodes to an all-gray image ("0x80") with FFmpeg and the reference output that is supposed to contain no pixels with value 0x80..

$ ffmpeg -i p0_12.j2k -f rawvideo -|hexdump -C
ffmpeg version N-72851-ge7adb02 Copyright (c) 2000-2015 the FFmpeg developers
  built with gcc 4.7 (SUSE Linux)
  configuration: --enable-gpl --enable-libtheora --enable-libvorbis
  libavutil      54. 27.100 / 54. 27.100
  libavcodec     56. 41.100 / 56. 41.100
  libavformat    56. 36.100 / 56. 36.100
  libavdevice    56.  4.100 / 56.  4.100
  libavfilter     5. 16.101 /  5. 16.101
  libswscale      3.  1.101 /  3.  1.101
  libswresample   1.  2.100 /  1.  2.100
  libpostproc    53.  3.100 / 53.  3.100
[jpeg2000 @ 0x360d180] extra cblk styles 4
Input #0, j2k_pipe, from 'p0_12.j2k':
  Duration: N/A, bitrate: N/A
    Stream #0:0: Video: jpeg2000 (JPEG 2000 codestream restriction 1), gray, 3x5, 25 tbr, 25 tbn, 25 tbc
Output #0, rawvideo, to 'pipe:':
  Metadata:
    encoder         : Lavf56.36.100
    Stream #0:0: Video: rawvideo (Y800 / 0x30303859), gray, 3x5, q=2-31, 200 kb/s, 25 fps, 25 tbn, 25 tbc
    Metadata:
      encoder         : Lavc56.41.100 rawvideo
Stream mapping:
  Stream #0:0 -> #0:0 (jpeg2000 (native) -> rawvideo (native))
Press [q] to stop, [?] for help
[jpeg2000 @ 0x3613040] extra cblk styles 4
frame=    1 fps=0.0 q=0.0 Lsize=       0kB time=00:00:00.04 bitrate=   3.0kbits/s
video:0kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 0.000000%
00000000  80 80 80 80 80 80 80 80  80 80 80 80 80 80 80     |...............|
0000000f

Attachments (2)

p0_12.j2k (285 bytes) - added by cehoyos 4 years ago.
p0_12.pnm (26 bytes) - added by cehoyos 4 years ago.

Download all attachments as: .zip

Change History (4)

Changed 4 years ago by cehoyos

Changed 4 years ago by cehoyos

comment:1 Changed 4 years ago by michael

  • Summary changed from jpeg 2000: Incorrect decoding to jpeg 2000: Incorrect decoding of tiny image

comment:2 Changed 4 years ago by michael

  • Reproduced by developer set
  • Resolution set to fixed
  • Status changed from new to closed
Note: See TracTickets for help on using tickets.