Opened 2 hours ago

Last modified 2 hours ago

#11343 new defect

Two channel Bayer JPEG images no longer decode

Reported by: pross Owned by:
Priority: normal Component: avcodec
Version: unspecified Keywords: mjpeg
Cc: Blocked By:
Blocking: Reproduced by developer: yes
Analyzed by developer: no

Description

The attached file is not playable in FFmpeg. Steps to reproduce:

% ./ffmpeg -i bayer-2ch.jpg -f null -
ffmpeg version N-118050-ga518b5540d Copyright (c) 2000-2024 the FFmpeg developers
  built with gcc 14 (Debian 14.2.0-8)
  configuration: --samples=/home/user/workspace/samples --enable-gpl
  libavutil      59. 49.100 / 59. 49.100
  libavcodec     61. 26.100 / 61. 26.100
  libavformat    61.  9.100 / 61.  9.100
  libavdevice    61.  4.100 / 61.  4.100
  libavfilter    10.  6.101 / 10.  6.101
  libswscale      8. 12.100 /  8. 12.100
  libswresample   5.  4.100 /  5.  4.100
  libpostproc    58.  4.100 / 58.  4.100
[mjpeg @ 0x55f9669d4f00] Pixel format 0x11110000 bits:14 is not implemented. Update your FFmpeg version to the newest one from Git. If the problem still occurs, it means that your file has a feature which has not been implemented.
[image2 @ 0x55f9669d3b80] Could not find codec parameters for stream 0 (Video: mjpeg (Lossless), none(bt470bg/unknown/unknown), 868x976, lossless): unspecified pixel format

This used to work. Error appear to be caused by commit a75a9e8f64ec9660b7c6e16653299f07bfe00f9d which requiring the s->bayer flag to be set externally. When invoking the jpeg decoder from the command line like this, the bayer flag is never set.

Change History (1)

comment:1 by pross, 2 hours ago

bayer-2ch.jpg: https://0x0.st/XFzx.jpg (2.8M)

Note: See TracTickets for help on using tickets.