[FFmpeg-trac] #6856(undetermined:new): filename limited to 1024

FFmpeg trac at avcodec.org
Thu Nov 23 10:25:42 EET 2017


#6856: filename limited to 1024
-------------------------------------+-------------------------------------
             Reporter:  d2d22        |                     Type:  defect
               Status:  new          |                 Priority:  normal
            Component:               |                  Version:
  undetermined                       |  unspecified
             Keywords:               |               Blocked By:
             Blocking:               |  Reproduced by developer:  0
Analyzed by developer:  0            |
-------------------------------------+-------------------------------------
 It could make sense to limit the filename to 1024 but this variable is
 also used by the tee muxer and contain all the options, when using the
 dash and hls format it's easy to go over those 1024 characters.
 If you go over the 1024 character you got inconsistent error messages
 about your options. Hard to spot that the issue is that the string is
 truncated, this value should be at least doubled and an error message
 should be displayed explaining that this option is limited to a number of
 characters.

 see avformat.h and tee_common.c using the filename to parse the options

 {{{
    /**
      * input or output filename
      *
      * - demuxing: set by avformat_open_input()
      * - muxing: may be set by the caller before avformat_write_header()
      */
     char filename[1024];
 }}}

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


More information about the FFmpeg-trac mailing list