MayaFlux 0.5.0
Digital-First Multimedia Processing Framework
Loading...
Searching...
No Matches

◆ is_codec_valid()

bool MayaFlux::IO::VideoStreamContext::is_codec_valid ( ) const
inline

True if the codec context is open and ready to receive packets.

Does NOT require the SwsContext scaler to be initialised. Use this check in live-capture paths instead of is_valid().

Definition at line 95 of file VideoStreamContext.hpp.

96 {
97 return codec_context && stream_index >= 0;
98 }
AVCodecContext * codec_context
Owned; freed in destructor.