// SPDX-FileCopyrightText: 2023 The Pion community <https://pion.ly>
// SPDX-License-Identifier: MIT

package flexfec

// FecOption can be used to set initial options on Fec encoder interceptors.
type FecOption func(d *FecInterceptor) error

// NumMediaPackets sets the number of media packets to accumulate before generating another FEC packets batch.
func ( uint32) FecOption {
	return func( *FecInterceptor) error {
		.numMediaPackets = 

		return nil
	}
}

// NumFECPackets sets the number of FEC packets to generate for each batch of media packets.
func ( uint32) FecOption {
	return func( *FecInterceptor) error {
		.numFecPackets = 

		return nil
	}
}

// FECEncoderFactory sets the custom factory for constructing the FEC Encoders.
func ( EncoderFactory) FecOption {
	return func( *FecInterceptor) error {
		.encoderFactory = 

		return nil
	}
}