New submission from ami_stuff <[email protected]>:

FFmpeg exits automaticly when the error happens now, but FFplay not.

"Author: stefano
Date: Sun Jan 16 21:11:46 2011
New Revision: 26395

Log:
Make config_props() return AVERROR(EINVAL) rather than 1 in case of
failed SWScaleContext initialization.

Fix issue2546.

Modified:
   trunk/libavfilter/vf_scale.c"


This probably may leads to crashes with video files when the same error happens.

C:\>ffplay C:\1.jpg
FFplay version SVN-r26397, Copyright (c) 2003-2011 the FFmpeg developers
  built on Jan 17 2011 04:07:25 with gcc 4.4.2
  configuration: --enable-gpl --enable-version3 --enable-libgsm --enable-libvorb
is --enable-libtheora --enable-libspeex --enable-libmp3lame --enable-libopenjpeg
 --enable-libschroedinger --enable-libopencore_amrwb --enable-libopencore_amrnb
--enable-libvpx --disable-decoder=libvpx --arch=x86 --enable-runtime-cpudetect -
-enable-libxvid --enable-libx264 --enable-librtmp --extra-libs='-lrtmp -lpolarss
l -lws2_32 -lwinmm' --target-os=mingw32 --enable-avisynth --enable-w32threads --
cross-prefix=i686-mingw32- --cc='ccache i686-mingw32-gcc' --enable-memalign-hack

  libavutil     50.36. 0 / 50.36. 0
  libavcore      0.16. 1 /  0.16. 1
  libavcodec    52.108. 0 / 52.108. 0
  libavformat   52.93. 0 / 52.93. 0
  libavdevice   52. 2. 3 / 52. 2. 3
  libavfilter    1.74. 0 /  1.74. 0
  libswscale     0.12. 0 /  0.12. 0
Input #0, image2, from 'C:\1.jpg':
  Duration: 00:00:00.04, start: 0.000000, bitrate: N/A
    Stream #0.0: Video: mjpeg, yuvj420p, 5x3 [PAR 72:72 DAR 5:3], 25 tbr, 25 tbn
, 25 tbc
[ffsink @ 0220b250] auto-inserting filter 'auto-inserted scaler 0' between the f
ilter 'src' and the filter 'out'
[scale @ 02204240] w:5 h:3 fmt:yuvj420p -> w:5 h:3 fmt:yuv420p flags:0x4
swScaler: 5x3 -> 5x3 is invalid scaling dimension
1295260581.66 A-V:  0.000 s:0.0 aq=    0KB vq=    0KB sq=    0B f=0/0

----------
files: 1.jpg
messages: 13485
priority: normal
status: new
substatus: new
title: FFplay do not exit automaticly whenSWScaleContext initialization fails
type: bug

________________________________________________
FFmpeg issue tracker <[email protected]>
<https://roundup.ffmpeg.org/issue2559>
________________________________________________

<<attachment: 1.jpg>>

Reply via email to