[FFmpeg-trac] #3893(avcodec:new): tiff decoder fails to decode yuv images with odd dimensions
FFmpeg
trac at avcodec.org
Mon Aug 25 02:39:46 CEST 2014
#3893: tiff decoder fails to decode yuv images with odd dimensions
--------------------------------------+---------------------------------
Reporter: jamal | Owner:
Type: defect | Status: new
Priority: normal | Component: avcodec
Version: git-master | Keywords: tif
Blocked By: | Blocking:
Reproduced by developer: 0 | Analyzed by developer: 0
--------------------------------------+---------------------------------
Decoding output of attached file is broken with ffmpeg git, but not with
libtiff 4.0.3
{{{
$ ./ffmpeg -i yuv-3c-8b.tiff out.bmp
ffmpeg version N-65869-gcc0acdb Copyright (c) 2000-2014 the FFmpeg
developers
built on Aug 24 2014 14:40:02 with gcc 4.9.1 (GCC)
configuration: --enable-nonfree --enable-gpl --enable-libmp3lame
--enable-libvorbis --enable-libopus --enable-libfdk-aac --enable-libx264
--enable-libx265 --enable-libvpx --enable-libwebp --enable-cross-compile
--cross-prefix=x86_64-w64-mingw32- --arch=x86_64 --target-os=mingw32
--prefix=/mingw64
libavutil 54. 7.100 / 54. 7.100
libavcodec 56. 0.101 / 56. 0.101
libavformat 56. 2.100 / 56. 2.100
libavdevice 56. 0.100 / 56. 0.100
libavfilter 5. 0.103 / 5. 0.103
libswscale 3. 0.100 / 3. 0.100
libswresample 1. 1.100 / 1. 1.100
libpostproc 53. 0.100 / 53. 0.100
Input #0, image2, from 'yuv-3c-8b.tiff':
Duration: 00:00:00.04, start: 0.000000, bitrate: N/A
Stream #0:0: Video: tiff, yuv420p, 157x151, 25 tbr, 25 tbn, 25 tbc
Output #0, image2, to 'out.bmp':
Metadata:
encoder : Lavf56.2.100
Stream #0:0: Video: bmp, bgr24, 157x151, q=2-31, 200 kb/s, 25 fps, 25
tbn, 25 tbc
Metadata:
encoder : Lavc56.0.101 bmp
Stream mapping:
Stream #0:0 -> #0:0 (tiff (native) -> bmp (native))
Press [q] to stop, [?] for help
frame= 1 fps=0.0 q=0.0 Lsize=N/A time=00:00:00.04 bitrate=N/A
video:70kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB
muxing overhead: unknown
}}}
out.bmp looks completely broken, whereas with libtiff
{{{
$ tiff2rgba yuv-3c-8b.tiff out.tif
}}}
out.tif looks fine.
--
Ticket URL: <https://trac.ffmpeg.org/ticket/3893>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker
More information about the FFmpeg-trac
mailing list