Opened 13 years ago

Closed 13 years ago

#889 closed defect (fixed)

ljpeg: lossless predictor

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

Description

when the file have lossless predictor set to 0, ffmpeg decodes it incorrectly (8/12/16/24/48bpp)

there is also a problem with lossless predictor 7 with 12bpp file

C:\>ffmpeg -i 12_lossless_predictor_7.jpg
ffmpeg version N-36492-g7f83db3, Copyright (c) 2000-2012 the FFmpeg developers
  built on Jan  5 2012 01:57:12 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. 34.100 / 51. 34.100
  libavcodec     53. 53.100 / 53. 53.100
  libavformat    53. 29.100 / 53. 29.100
  libavdevice    53.  4.100 / 53.  4.100
  libavfilter     2. 57.101 /  2. 57.101
  libswscale      2.  1.100 /  2.  1.100
  libswresample   0.  5.100 /  0.  5.100
  libpostproc    51.  2.100 / 51.  2.100
Input #0, image2, from '12_lossless_predictor_7.jpg':
  Duration: 00:00:00.04, start: 0.000000, bitrate: N/A
    Stream #0:0: Video: mjpeg, gray16le, 1024x768 [SAR 96:96 DAR 4:3], 25 tbr, 2
5 tbn, 25 tbc
At least one output file must be specified

Attachments (3)

12_lossless_predictor_7.jpg (929.7 KB ) - added by ami_stuff 13 years ago.
12_lossless_predictor_0.jpg (2.0 MB ) - added by ami_stuff 13 years ago.
8_lossless_predictor_0.jpg (1.1 MB ) - added by ami_stuff 13 years ago.

Change History (5)

by ami_stuff, 13 years ago

Attachment: 12_lossless_predictor_7.jpg added

by ami_stuff, 13 years ago

Attachment: 12_lossless_predictor_0.jpg added

by ami_stuff, 13 years ago

Attachment: 8_lossless_predictor_0.jpg added

comment:1 by Carl Eugen Hoyos, 13 years ago

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

comment:2 by Michael Niedermayer, 13 years ago

Resolution: fixed
Status: openclosed

Fixed, patch on ML

Note: See TracTickets for help on using tickets.