#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
_______________________________________________
FFmpeg-trac mailing list
FFmpeg-trac@avcodec.org
http://ffmpeg.org/mailman/listinfo/ffmpeg-trac

Reply via email to