[FFmpeg-trac] #2981(swscale:new): No support for jpeg with 1pixel width
FFmpeg
trac at avcodec.org
Sat Sep 21 22:43:43 CEST 2013
#2981: No support for jpeg with 1pixel width
---------------------------------+--------------------------------------
Reporter: cyril | Type: defect
Status: new | Priority: normal
Component: swscale | Version: git-master
Keywords: | Blocked By:
Blocking: | Reproduced by developer: 0
Analyzed by developer: 0 |
---------------------------------+--------------------------------------
Summary of the bug: It doesn't seem like FFmpeg handle safely jpeg with 1
pixel width. After a call to sws_scale(), the buffer passed as the "dst"
parameter isn't safe anymore and cannot be freed thereafter.
FFplay seems to reproduce the same issue because it cannot even display
the jpeg file.
How to reproduce:
{{{
% ffplay.exe root_banner.jpg
ffplay version N-56525-g5b153f8 Copyright (c) 2003-2013 the FFmpeg
developers
built on Sep 21 2013 00:42:32 with gcc 4.7.3 (GCC)
configuration: --enable-gpl --enable-version3 --disable-w32threads
--enable-av
isynth --enable-bzlib --enable-fontconfig --enable-frei0r --enable-gnutls
--enab
le-iconv --enable-libass --enable-libbluray --enable-libcaca --enable-
libfreetyp
e --enable-libgsm --enable-libilbc --enable-libmodplug --enable-libmp3lame
--ena
ble-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg
--enable-l
ibopus --enable-librtmp --enable-libschroedinger --enable-libsoxr
--enable-libsp
eex --enable-libtheora --enable-libtwolame --enable-libvidstab --enable-
libvo-aa
cenc --enable-libvo-amrwbenc --enable-libvorbis --enable-libvpx --enable-
libwavp
ack --enable-libx264 --enable-libxavs --enable-libxvid --enable-zlib
libavutil 52. 45.100 / 52. 45.100
libavcodec 55. 33.100 / 55. 33.100
libavformat 55. 18.102 / 55. 18.102
libavdevice 55. 3.100 / 55. 3.100
libavfilter 3. 86.102 / 3. 86.102
libswscale 2. 5.100 / 2. 5.100
libswresample 0. 17.103 / 0. 17.103
libpostproc 52. 3.100 / 52. 3.100
Input #0, image2, from '..\root_banner.jpg': 0KB sq= 0B f=0/0
Duration: 00:00:00.04, start: 0.000000, bitrate: N/A
Stream #0:0: Video: mjpeg, yuvj420p(pc), 1x60 [SAR 96:96 DAR 1:60], 25
tbr,
25 tbn, 25 tbc
[swscaler @ 0000000002864fe0] deprecated pixel format used, make sure you
did se
t range correctly
[ffplay_crop @ 0000000002850e40] Invalid too big or non positive size for
width
'0' or height '60'
[auto-inserted scaler 0 @ 00000000028452c0] Failed to configure input pad
on ffp
lay_crop
}}}
--
Ticket URL: <https://ffmpeg.org/trac/ffmpeg/ticket/2981>
FFmpeg <http://ffmpeg.org>
FFmpeg issue tracker
More information about the FFmpeg-trac
mailing list