• Soft Works's avatar
    avutil/opt: Print out numeric values of option constants · 9e0a071e
    Soft Works authored
    It's often not obvious how option constants relate to numerical values.
    Defaults are sometimes printed as numbers and from/to are always printed as numbers.
    Printing the numeric values of options constants avoids this confusion.
    It also allows to see which constants are equivalent.
    
    Before this patch:
    
      -segment_list_type <int>        E........ set the segment list type (from -1 to 4) (default -1)
         flat                         E........ flat format
         csv                          E........ csv format
         ext                          E........ extended format
         ffconcat                     E........ ffconcat format
         m3u8                         E........ M3U8 format
         hls                          E........ Apple HTTP Live Streaming compatible
    
    Afterwards:
    
      -segment_list_type <int>        E........ set the segment list type (from -1 to 4) (default -1)
         flat            0            E........ flat format
         csv             1            E........ csv format
         ext             3            E........ extended format
         ffconcat        4            E........ ffconcat format
         m3u8            2            E........ M3U8 format
         hls             2            E........ Apple HTTP Live Streaming compatible
    Signed-off-by: 's avatarsoftworkz <softworkz@hotmail.com>
    Signed-off-by: 's avatarMichael Niedermayer <michael@niedermayer.cc>
    9e0a071e
opt.c 65.8 KB