[FFmpeg-trac] #3687(avcodec:new): bmp parser is more strict than the bmp decoder
FFmpeg
trac at avcodec.org
Fri May 30 05:31:46 CEST 2014
#3687: bmp parser is more strict than the bmp decoder
--------------------------------------+---------------------------------
Reporter: cehoyos | Owner:
Type: defect | Status: new
Priority: normal | Component: avcodec
Version: git-master | Keywords: bmp
Blocked By: | Blocking:
Reproduced by developer: 0 | Analyzed by developer: 0
--------------------------------------+---------------------------------
I will attach a bmp sample with incorrect written size, the file decodes
fine with lavc, the parser breaks it.
{{{
$ cat 8bpp.bmp | ./ffmpeg -f image2pipe -vcodec bmp -i - out.png
ffmpeg version N-63596-g772d46d Copyright (c) 2000-2014 the FFmpeg
developers
built on May 30 2014 05:16:07 with gcc 4.7 (SUSE Linux)
configuration: --enable-gpl --enable-libspeex
libavutil 52. 87.100 / 52. 87.100
libavcodec 55. 65.100 / 55. 65.100
libavformat 55. 42.100 / 55. 42.100
libavdevice 55. 13.101 / 55. 13.101
libavfilter 4. 5.100 / 4. 5.100
libswscale 2. 6.100 / 2. 6.100
libswresample 0. 19.100 / 0. 19.100
libpostproc 52. 3.100 / 52. 3.100
[bmp @ 0x212a980] not enough data (785408 < 786432)
Input #0, image2pipe, from 'pipe:':
Duration: N/A, bitrate: N/A
Stream #0:0: Video: bmp, pal8, 1024x768, 25 tbr, 25 tbn, 25 tbc
File 'out.png' already exists. Exiting.
}}}
--
Ticket URL: <https://trac.ffmpeg.org/ticket/3687>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker
More information about the FFmpeg-trac
mailing list