[FFmpeg-trac] #5527(avfilter:reopened): Delogo crash with x=0 and/or y=0

FFmpeg trac at avcodec.org
Tue May 10 12:49:04 CEST 2016


#5527: Delogo crash with x=0 and/or y=0
-------------------------------------+-------------------------------------
             Reporter:  easyfab      |                    Owner:
                 Type:  defect       |                   Status:  reopened
             Priority:  important    |                Component:  avfilter
              Version:  git-master   |               Resolution:
             Keywords:  delogo       |               Blocked By:
  crash fpe regression               |  Reproduced by developer:  1
             Blocking:               |
Analyzed by developer:  0            |
-------------------------------------+-------------------------------------
Changes (by cehoyos):

 * keywords:   => delogo crash fpe regression
 * version:  unspecified => git-master
 * component:  undetermined => avfilter


Comment:

 @easyfab: For future tickets, please always provide an actual command line
 that allows to reproduce the issue together with the complete, uncut
 console output for valid tickets.

 Regression since 8bc708fcee137ead6d0773fad8e24ab471ab2122
 {{{
 $ valgrind ./ffmpeg_g -f lavfi -i color=d=1 -vf delogo=x=0:y=0:w=20:h=20
 -f null -
 ==27586== Memcheck, a memory error detector
 ==27586== Copyright (C) 2002-2011, and GNU GPL'd, by Julian Seward et al.
 ==27586== Using Valgrind-3.7.0 and LibVEX; rerun with -h for copyright
 info
 ==27586== Command: ./ffmpeg_g -f lavfi -i color=d=1 -vf
 delogo=x=0:y=0:w=20:h=20 -f null -
 ==27586==
 ffmpeg version N-79889-g9486de5 Copyright (c) 2000-2016 the FFmpeg
 developers
   built with gcc 4.7 (SUSE Linux)
   configuration: --enable-gpl
   libavutil      55. 24.100 / 55. 24.100
   libavcodec     57. 40.100 / 57. 40.100
   libavformat    57. 36.100 / 57. 36.100
   libavdevice    57.  0.101 / 57.  0.101
   libavfilter     6. 45.100 /  6. 45.100
   libswscale      4.  1.100 /  4.  1.100
   libswresample   2.  0.101 /  2.  0.101
   libpostproc    54.  0.100 / 54.  0.100
 Input #0, lavfi, from 'color=d=1':
   Duration: N/A, start: 0.000000, bitrate: N/A
     Stream #0:0: Video: rawvideo (I420 / 0x30323449), yuv420p, 320x240
 [SAR 1:1 DAR 4:3], 25 fps, 25 tbr, 25 tbn
 [Parsed_delogo_0 @ 0xb5a7c20] Note: default band value was changed from 4
 to 1.
 [null @ 0xb5a4240] Using AVStream.codec to pass codec parameters to muxers
 is deprecated, use AVStream.codecpar instead.
 Output #0, null, to 'pipe:':
   Metadata:
     encoder         : Lavf57.36.100
     Stream #0:0: Video: wrapped_avframe, yuv420p, 320x240 [SAR 1:1 DAR
 4:3], q=2-31, 200 kb/s, 25 fps, 25 tbn
     Metadata:
       encoder         : Lavc57.40.100 wrapped_avframe
 Stream mapping:
   Stream #0:0 -> #0:0 (rawvideo (native) -> wrapped_avframe (native))
 Press [q] to stop, [?] for help
 ==27586==
 ==27586== Process terminating with default action of signal 8 (SIGFPE)
 ==27586==  Integer divide by zero at address 0x405BCDEB3
 ==27586==    at 0x4EF3A5: filter_frame (vf_delogo.c:147)
 ==27586==    by 0x4B6A70: ff_filter_frame_framed (avfilter.c:1125)
 ==27586==    by 0x4B7866: ff_filter_frame (avfilter.c:1223)
 ==27586==    by 0x4BB9E1: request_frame (buffersrc.c:450)
 ==27586==    by 0x4BBC7A: av_buffersrc_add_frame_internal
 (buffersrc.c:239)
 ==27586==    by 0x4BC12C: av_buffersrc_add_frame_flags (buffersrc.c:164)
 ==27586==    by 0x498C51: decode_video (ffmpeg.c:2196)
 ==27586==    by 0x49BE86: transcode (ffmpeg.c:2340)
 ==27586==    by 0x47DCDA: main (ffmpeg.c:4345)
 ==27586==
 ==27586== HEAP SUMMARY:
 ==27586==     in use at exit: 393,259 bytes in 191 blocks
 ==27586==   total heap usage: 1,929 allocs, 1,738 frees, 988,458 bytes
 allocated
 ==27586==
 ==27586== LEAK SUMMARY:
 ==27586==    definitely lost: 0 bytes in 0 blocks
 ==27586==    indirectly lost: 0 bytes in 0 blocks
 ==27586==      possibly lost: 5,472 bytes in 18 blocks
 ==27586==    still reachable: 387,787 bytes in 173 blocks
 ==27586==         suppressed: 0 bytes in 0 blocks
 ==27586== Rerun with --leak-check=full to see details of leaked memory
 ==27586==
 ==27586== For counts of detected and suppressed errors, rerun with: -v
 ==27586== ERROR SUMMARY: 0 errors from 0 contexts (suppressed: 2 from 2)
 Killed
 }}}

--
Ticket URL: <https://trac.ffmpeg.org/ticket/5527#comment:10>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker


More information about the FFmpeg-trac mailing list