[FFmpeg-devel] [PATCH V3 2/2] lavf/libsrt: enable other encryption parameters

Moritz Barsnick barsnick at gmx.net
Wed Dec 4 11:46:44 EET 2019


On Wed, Dec 04, 2019 at 10:20:00 +0800, mypopy at gmail.com wrote:
> > > +    { "enforced_encryption",      "Enforces that both connection parties have the same passphrase set ", OFFSET(enforced_encryption),        AV_OPT_TYPE_INT,      { .i64 = -1 }, -1, 1,         .flags = D|E },
> >
> > is this intended to be INT and not AV_OPT_TYPE_BOOL ?
>
> Now -1 means auto (default value depend on libsrt library itself) ,
> this is the reason don't use the AV_OPT_TYPE_BOOL same as other srt
> option in FFmpeg.

AV_OPT_TYPE_BOOL accepts -1 as a default.

Moritz


More information about the ffmpeg-devel mailing list