If flushing is not disabled, then mux.c will signal the end of the packets with
an AVIO_DATA_MARKER_FLUSH_POINT, and aviobuf will be able to decide to flush or
not based on the preferred minimum packet size set by the used protocol.
Reviewed-by: Michael Niedermayer <michael@niedermayer.cc>
Signed-off-by: Marton Balint <cus@passwd.hu>
{"flush_packets","reduce the latency by flushing out packets immediately",0,AV_OPT_TYPE_CONST,{.i64=AVFMT_FLAG_FLUSH_PACKETS},INT_MIN,INT_MAX,E,"fflags"},
{"flush_packets","reduce the latency by flushing out packets immediately",0,AV_OPT_TYPE_CONST,{.i64=AVFMT_FLAG_FLUSH_PACKETS},INT_MIN,INT_MAX,E,"fflags"},
{"use_wallclock_as_timestamps","use wallclock as timestamps",OFFSET(use_wallclock_as_timestamps),AV_OPT_TYPE_BOOL,{.i64=0},0,1,D},
{"use_wallclock_as_timestamps","use wallclock as timestamps",OFFSET(use_wallclock_as_timestamps),AV_OPT_TYPE_BOOL,{.i64=0},0,1,D},
{"skip_initial_bytes","set number of bytes to skip before reading header and frames",OFFSET(skip_initial_bytes),AV_OPT_TYPE_INT64,{.i64=0},0,INT64_MAX-1,D},
{"skip_initial_bytes","set number of bytes to skip before reading header and frames",OFFSET(skip_initial_bytes),AV_OPT_TYPE_INT64,{.i64=0},0,INT64_MAX-1,D},
{"correct_ts_overflow","correct single timestamp overflows",OFFSET(correct_ts_overflow),AV_OPT_TYPE_BOOL,{.i64=1},0,1,D},
{"correct_ts_overflow","correct single timestamp overflows",OFFSET(correct_ts_overflow),AV_OPT_TYPE_BOOL,{.i64=1},0,1,D},
{"flush_packets","enable flushing of the I/O context after each packet",OFFSET(flush_packets),AV_OPT_TYPE_BOOL,{.i64=1},0,1,E},
{"flush_packets","enable flushing of the I/O context after each packet",OFFSET(flush_packets),AV_OPT_TYPE_INT,{.i64=-1},-1,1,E},
{"metadata_header_padding","set number of bytes to be written as padding in a metadata header",OFFSET(metadata_header_padding),AV_OPT_TYPE_INT,{.i64=-1},-1,INT_MAX,E},
{"metadata_header_padding","set number of bytes to be written as padding in a metadata header",OFFSET(metadata_header_padding),AV_OPT_TYPE_INT,{.i64=-1},-1,INT_MAX,E},