Carl Eugen Hoyos <[email protected]> added the comment:

The problem seems either that avfilter does not forward the init error, or
ffmpeg does not read it.

$ ffmpeg -i tests/lena.pnm -s 5x3 out.bmp
FFmpeg version SVN-r26383, Copyright (c) 2000-2011 the FFmpeg developers
  built on Jan 16 2011 09:57:56 with gcc 4.5.2
  configuration: --cc='/usr/local/gcc-4.5.2/bin/gcc -m32' --disable-avfilter
  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
  libswscale     0.12. 0 /  0.12. 0
Input #0, image2, from 'tests/lena.pnm':
  Duration: 00:00:00.04, start: 0.000000, bitrate: N/A
    Stream #0.0: Video: ppm, rgb24, 256x256, 25 tbr, 25 tbn, 25 tbc
swScaler: 256x256 -> 5x3 is invalid scaling dimension
Cannot get resampling context

(gdb) r -i tests/lena.pnm -s 5x3 out.bmp
FFmpeg version SVN-r26383, Copyright (c) 2000-2011 the FFmpeg developers
  built on Jan 16 2011 10:04:55 with gcc 4.5.2
  configuration: --cc='/usr/local/gcc-4.5.2/bin/gcc -m32'
  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 'tests/lena.pnm':
  Duration: 00:00:00.04, start: 0.000000, bitrate: N/A
    Stream #0.0: Video: ppm, rgb24, 256x256, 25 tbr, 25 tbn, 25 tbc
[buffer @ 0x8b8a4a0] w:256 h:256 pixfmt:rgb24
[scale @ 0x8b8a870] w:256 h:256 fmt:rgb24 -> w:5 h:3 fmt:bgr24 flags:0xa0000004
swScaler: 256x256 -> 5x3 is invalid scaling dimension
Output #0, image2, to 'out.bmp':
  Metadata:
    encoder         : Lavf52.93.0
    Stream #0.0: Video: bmp, bgr24, 5x3, q=2-31, 200 kb/s, 90k tbn, 25 tbc
Stream mapping:
  Stream #0.0 -> #0.0
Press [q] to stop encoding

Program received signal SIGSEGV, Segmentation fault.
0x084d8e4d in sws_scale (c=0x0, src=0xffffba60, srcStride=0x8bf82b4,
srcSliceY=0, srcSliceH=256,
    dst=0x8bf8454, dstStride=0x8bf8474) at libswscale/swscale.c:1907
1907        if (!check_image_pointers(src, c->srcFormat, srcStride)) {
(gdb) bt
#0  0x084d8e4d in sws_scale (c=0x0, src=0xffffba60, srcStride=0x8bf82b4,
srcSliceY=0, srcSliceH=256,
    dst=0x8bf8454, dstStride=0x8bf8474) at libswscale/swscale.c:1907
#1  0x0806840a in draw_slice (link=0x8b8aa30, y=0, h=256, slice_dir=1) at
libavfilter/vf_scale.c:187
#2  0x0805fd08 in avfilter_draw_slice (link=0x8b8aa30, y=0, h=256, slice_dir=1)
    at libavfilter/avfilter.c:468
#3  0x0806a263 in request_frame (link=0x8b8aa30) at 
libavfilter/vsrc_buffer.c:134
#4  0x0805f2df in avfilter_request_frame (link=0x8b8aaf0) at
libavfilter/avfilter.c:357
#5  0x0805a330 in get_filtered_video_frame (ctx=0x8b8a710, frame=0xffffbea0,
picref_ptr=0x8b8a450,
    tb=0xffffc090) at cmdutils.c:844
#6  0x0804ce6e in output_packet (ist=0x8b8a3e0, ist_index=0,
ost_table=0x8b88150, nb_ostreams=1,
    pkt=0xffffce3c) at ffmpeg.c:1649
#7  0x08052eee in transcode (nb_output_files=1, nb_input_files=1,
stream_maps=0x0, nb_stream_maps=0,
    input_files=0x8646100, output_files=0x8645f60) at ffmpeg.c:2636
#8  0x08057ae9 in main (argc=6, argv=0xffffcff4) at ffmpeg.c:4361

----------
priority: normal -> important
status: new -> open
substatus: new -> reproduced
topic: +avfilter, regression

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

Reply via email to