[FFmpeg-trac] #3687(avcodec:new): bmp parser is more strict than the bmp decoder
FFmpeg
trac at avcodec.org
Fri Jul 4 01:48:53 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 | Resolution:
Keywords: bmp | Blocked By:
Blocking: | Reproduced by developer: 0
Analyzed by developer: 0 |
------------------------------------+-----------------------------------
Comment (by cehoyos):
This is now simpler to reproduce:
{{{
$ cp 8bpp.bmp bmpimage
}}}
{{{
$ ffmpeg -i bmpimage out.png
ffmpeg version N-64397-g5c65aed Copyright (c) 2000-2014 the FFmpeg
developers
built on Jul 4 2014 01:47:20 with gcc 4.7 (SUSE Linux)
configuration: --enable-gpl
libavutil 52. 90.101 / 52. 90.101
libavcodec 55. 68.100 / 55. 68.100
libavformat 55. 45.100 / 55. 45.100
libavdevice 55. 13.101 / 55. 13.101
libavfilter 4. 10.100 / 4. 10.100
libswscale 2. 6.100 / 2. 6.100
libswresample 0. 19.100 / 0. 19.100
libpostproc 52. 3.100 / 52. 3.100
[bmp @ 0x1f3ba80] not enough data (785408 < 786432)
Input #0, bmp_pipe, from 'bmpimage':
Duration: N/A, bitrate: N/A
Stream #0:0: Video: bmp, pal8, 1024x768, 25 tbr, 25 tbn, 25 tbc
[image2 @ 0x1f3c9c0] Using AVStream.codec.time_base as a timebase hint to
the muxer is deprecated. Set AVStream.time_base instead.
Output #0, image2, to 'out.png':
Metadata:
encoder : Lavf55.45.100
Stream #0:0: Video: png, pal8, 1024x768, q=2-31, 200 kb/s, 25 fps, 25
tbn, 25 tbc
Metadata:
encoder : Lavc55.68.100 png
Stream mapping:
Stream #0:0 -> #0:0 (bmp (native) -> png (native))
Press [q] to stop, [?] for help
[bmp @ 0x1f3c520] not enough data (785408 < 786432)
Error while decoding stream #0:0: Invalid data found when processing input
bmpimage: Input/output error
frame= 0 fps=0.0 q=0.0 Lsize=N/A time=00:00:00.00 bitrate=N/A
video:0kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB
muxing overhead: unknown
Output file is empty, nothing was encoded (check -ss / -t / -frames
parameters if used)
Conversion failed!
}}}
--
Ticket URL: <https://trac.ffmpeg.org/ticket/3687#comment:2>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker
More information about the FFmpeg-trac
mailing list