[FFmpeg-trac] #4039(avformat:new): HTTP error-responses don't result in error code being returned by top level code

FFmpeg trac at avcodec.org
Fri Oct 17 04:21:20 CEST 2014


#4039: HTTP error-responses don't result in error code being returned by top level
code
-------------------------------------+-------------------------------------
             Reporter:  quandt       |                     Type:  defect
               Status:  new          |                 Priority:  normal
            Component:  avformat     |                  Version:
             Keywords:  exit code    |  unspecified
  http                               |               Blocked By:
             Blocking:               |  Reproduced by developer:  0
Analyzed by developer:  0            |
-------------------------------------+-------------------------------------
 When issuing calls like this:

 #!/bin/bash
 ffmpeg -i http://somehost/somecontent.type someout.mkv
 result=$?

 If the connection is lost or something wonky happens out on the server,
 while the code detects the error and stops processing, there is no error
 code propogated on exit, ie result in the above will always = 0 (no
 error).

 Simple way to replicate this is to issue "service apache2 restart" on a
 server you have access to where you are pulling the source from.

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


More information about the FFmpeg-trac mailing list