[FFmpeg-trac] #833(avcodec:open): crash with png (gray) to bmp (gray) conversion
FFmpeg
trac at avcodec.org
Mon Dec 26 23:46:55 CET 2011
#833: crash with png (gray) to bmp (gray) conversion
-------------------------------------+-------------------------------------
Reporter: ami_stuff | Owner:
Type: defect | Status: open
Priority: important | Component: avcodec
Version: git-master | Resolution:
Keywords: bmp crash | Blocked By:
SIGSEGV | Reproduced by developer: 1
Blocking: |
Analyzed by developer: 0 |
-------------------------------------+-------------------------------------
Comment (by ami_stuff):
{{{
(gdb) r -i gray.png out.pcx
Starting program: F:\MinGW\msys\1.0\ffmpeg-HEAD-834f80d/ffmpeg_g.exe -i
gray.png
out.pcx
[New Thread 3752.0x8e0]
ffmpeg version 0.9.0.git-834f80d, Copyright (c) 2000-2011 the FFmpeg
developers
built on Dec 22 2011 14:07:40 with gcc 4.5.2
configuration: --disable-ffplay --disable-ffserver --disable-asm
--disable-yas
m --disable-shared --enable-static
libavutil 51. 32.100 / 51. 32.100
libavcodec 53. 47.100 / 53. 47.100
libavformat 53. 28.100 / 53. 28.100
libavdevice 53. 4.100 / 53. 4.100
libavfilter 2. 53. 0 / 2. 53. 0
libswscale 2. 1.100 / 2. 1.100
libswresample 0. 5.100 / 0. 0.100
Input #0, image2, from 'gray.png':
Duration: 00:00:00.04, start: 0.000000, bitrate: N/A
Stream #0:0: Video: png, gray, 1024x768, 25 tbr, 25 tbn, 25 tbc
[buffer @ 03d61590] w:1024 h:768 pixfmt:gray tb:1/1000000 sar:0/1
sws_param:
Output #0, image2, to 'out.pcx':
Metadata:
encoder : Lavf53.28.100
Stream #0:0: Video: pcx, gray, 1024x768, q=2-31, 200 kb/s, 90k tbn, 25
tbc
Stream mapping:
Stream #0:0 -> #0:0 (png -> pcx)
Press [q] to stop, [?] for help
Program received signal SIGSEGV, Segmentation fault.
pcx_encode_frame (avctx=0x42b0048, buf=0x4457453 "", buf_size=5515024,
data=0x22daf0) at libavcodec/pcxenc.c:185
185 bytestream_put_be24(&buf, pal[i]);
(gdb) bt
#0 pcx_encode_frame (avctx=0x42b0048, buf=0x4457453 "", buf_size=5515024,
data=0x22daf0) at libavcodec/pcxenc.c:185
#1 0x00509101 in avcodec_encode_video (avctx=0x42b0048,
buf=0x43b0020 "\n\005\001\b", buf_size=5515024, pict=0x22daf0)
at libavcodec/utils.c:881
#2 0x00404f6e in do_video_out (s=0x3d5f3b0, ost=0x3d5fd00,
in_picture=0x3d61e00, frame_size=0x22de9c, quality=0,
ist=<value optimized out>) at ffmpeg.c:1349
#3 0x004068c5 in transcode_video (ist=0x3d611b0, ost_table=0x3d5fd00,
nb_ostreams=1, pkt=0x22fbb8) at ffmpeg.c:1955
#4 output_packet (ist=0x3d611b0, ost_table=0x3d5fd00, nb_ostreams=1,
pkt=0x22fbb8) at ffmpeg.c:2046
#5 0x0040a63e in transcode (output_files=<value optimized out>,
nb_output_files=0, input_files=0x0, nb_input_files=4256952)
at ffmpeg.c:2804
#6 0x0022ff48 in ?? ()
#7 0x00000000 in ?? ()
}}}
--
Ticket URL: <https://ffmpeg.org/trac/ffmpeg/ticket/833#comment:2>
FFmpeg <http://ffmpeg.org>
FFmpeg issue tracker
More information about the FFmpeg-trac
mailing list