[FFmpeg-trac] #1863(undetermined:new): Remove all abort() calls from ffmpeg libraries

FFmpeg trac at avcodec.org
Mon Oct 29 14:26:22 CET 2012


#1863: Remove all abort() calls from ffmpeg libraries
-------------------------------------+-------------------------------------
             Reporter:  DonMoir      |                     Type:  defect
               Status:  new          |                 Priority:  normal
            Component:               |                  Version:
  undetermined                       |  unspecified
             Keywords:               |               Blocked By:
             Blocking:               |  Reproduced by developer:  0
Analyzed by developer:  0            |
-------------------------------------+-------------------------------------
 In certain failures, abort() is called in:

 for libavcodec:

     bitstream.c
     mpegvideo.c
     vp8.c

 for libavformat:

     sctp.c

 This is ok if the app is a simple command line app that only handles one
 video.

 It's not ok at all to bring down a GUI app this way. The abort calls need
 to removed and proper error handling needs to put into place so that the
 app will have a chance to handle it gracefully.

 NOTE: This is not an enhancement request. It should be considered a bug
 because it's ridiculous and could cause all kinds of problems with people
 wondering what the hell happened.

 One possible solution might be to have an application settable ff_abort
 call but this might be difficult to handle from an application perspective
 since it would not know what state the thing is in and what exactly to do
 about it. Probably best to just handle the error in the first place
 correctly and return the result code back to the app.

-- 
Ticket URL: <https://ffmpeg.org/trac/ffmpeg/ticket/1863>
FFmpeg <http://ffmpeg.org>
FFmpeg issue tracker


More information about the FFmpeg-trac mailing list