[FFmpeg-trac] #9156(avutil:closed): Option flag usage

FFmpeg trac at avcodec.org
Fri Mar 19 23:37:08 EET 2021


#9156: Option flag usage
-------------------------------------+-----------------------------------
             Reporter:  sceedy       |                    Owner:
                 Type:  defect       |                   Status:  closed
             Priority:  minor        |                Component:  avutil
              Version:  unspecified  |               Resolution:  invalid
             Keywords:               |               Blocked By:
             Blocking:               |  Reproduced by developer:  0
Analyzed by developer:  0            |
-------------------------------------+-----------------------------------
Changes (by cus):

 * status:  new => closed
 * resolution:   => invalid


Comment:

 You misunderstood. av_dict_set() only sets an AVDictionary value of key
 "mpegts_flags". AV_DICT_DONT_OVERWRITE refers to the AVDictionary only.

 Flag parsing happens later, when you pass the &Options dictionary to
 avformat_write_header. There the textual option for "mpegts_flags" is
 parsed according to the flags syntax, e.g "+flag" adds the specified flag
 to the default flags, "-flag" removes it, "flag" sets it and removes all
 other flags.

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


More information about the FFmpeg-trac mailing list