Opened 4 months ago

#11210 new defect

tiff files with a premult alpha channel are no longer read by ffmpeg

Reported by: jsteinkamp Owned by:
Priority: important Component: ffmpeg
Version: unspecified Keywords: tiff with alpha
Cc: Blocked By:
Blocking: Reproduced by developer: no
Analyzed by developer: no

Description

Premult tiff files with a separate alpha channel no longer read.
Unpremult tiff files with alpha information in the same layer as RGB, similar to PNG work.
Older versions of ffmpeg are able to read both variations.
example tiff files: https://jsteinkamp.com/tiff_ffmpeg_bug_report.zip

SCRIPT
ffmpeg -y -i premult.tif -vcodec png -pix_fmt rgb32 premult.png

ERROR [tiff @ 000002812cfdbb80] rps 0 invalid [vist#0:0/tiff @ 000002812d00ad80] [dec:tiff @ 000002812d00f900] Decoding error: Invalid data found when processing input

FFMPEG VERSION
ffmpeg version N-117174-g8b4e32f30b-20240925 Copyright (c) 2000-2024 the FFmpeg developers

built with gcc 14.2.0 (crosstool-NG 1.26.0.106_ed12fa6)
configuration: --prefix=/ffbuild/prefix --pkg-config-flags=--static --pkg-config=pkg-config --cross-prefix=x86_64-w64-mingw32- --arch=x86_64 --target-os=mingw32 --enable-gpl --enable-version3 --disable-debug --disable-w32threads --enable-pthreads --enable-iconv --enable-zlib --enable-libfreetype --enable-libfribidi --enable-gmp --enable-libxml2 --enable-lzma --enable-fontconfig --enable-libharfbuzz --enable-libvorbis --enable-opencl --disable-libpulse --enable-libvmaf --disable-libxcb --disable-xlib --enable-amf --enable-libaom --enable-libaribb24 --enable-avisynth --enable-chromaprint --enable-libdav1d --enable-libdavs2 --enable-libdvdread --enable-libdvdnav --disable-libfdk-aac --enable-ffnvcodec --enable-cuda-llvm --enable-frei0r --enable-libgme --enable-libkvazaar --enable-libaribcaption --enable-libass --enable-libbluray --enable-libjxl --enable-libmp3lame --enable-libopus --enable-librist --enable-libssh --enable-libtheora --enable-libvpx --enable-libwebp --enable-libzmq --enable-lv2 --enable-libvpl --enable-openal --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenh264 --enable-libopenjpeg --enable-libopenmpt --enable-librav1e --enable-librubberband --enable-schannel --enable-sdl2 --enable-libsoxr --enable-libsrt --enable-libsvtav1 --enable-libtwolame --enable-libuavs3d --disable-libdrm --enable-vaapi --enable-libvidstab --enable-vulkan --enable-libshaderc --enable-libplacebo --enable-libvvenc --enable-libx264 --enable-libx265 --enable-libxavs2 --enable-libxvid --enable-libzimg --enable-libzvbi --extra-cflags=-DLIBTWOLAME_STATIC --extra-cxxflags= --extra-libs=-lgomp --extra-ldflags=-pthread --extra-ldexeflags= --cc=x86_64-w64-mingw32-gcc --cxx=x86_64-w64-mingw32-g++ --ar=x86_64-w64-mingw32-gcc-ar --ranlib=x86_64-w64-mingw32-gcc-ranlib --nm=x86_64-w64-mingw32-gcc-nm --extra-version=20240925
libavutil 59. 40.100 / 59. 40.100
libavcodec 61. 20.100 / 61. 20.100
libavformat 61. 8.100 / 61. 8.100
libavdevice 61. 4.100 / 61. 4.100
libavfilter 10. 5.100 / 10. 5.100
libswscale 8. 4.100 / 8. 4.100
libswresample 5. 4.100 / 5. 4.100
libpostproc 58. 4.100 / 58. 4.100

Attachments (1)

tiff_ffmpeg_bug_report.zip (47.3 KB ) - added by jsteinkamp 4 months ago.
same files provided in the https link

Download all attachments as: .zip

Change History (1)

by jsteinkamp, 4 months ago

Attachment: tiff_ffmpeg_bug_report.zip added

same files provided in the https link

Note: See TracTickets for help on using tickets.