#[non_exhaustive]pub enum FindStreamError {
OutOfMemory,
InvalidArgument,
EndOfFile,
Timeout,
IOError,
InvalidData,
NotImplemented,
OperationNotPermitted,
NoStreamFound,
UnknownError(i32),
}Expand description
Errors from probing stream information after an input is opened
(avformat_find_stream_info).
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
OutOfMemory
Memory allocation failed (AVERROR(ENOMEM)).
InvalidArgument
FFmpeg rejected an argument as invalid (AVERROR(EINVAL)).
EndOfFile
Reached end of file before stream information could be determined
(AVERROR_EOF).
Timeout
The operation timed out (AVERROR(ETIMEDOUT)).
IOError
A low-level I/O error occurred (AVERROR(EIO)).
InvalidData
The stream contains invalid or corrupted data
(AVERROR_INVALIDDATA).
NotImplemented
The functionality or stream format is not supported by the linked
FFmpeg build (AVERROR(ENOSYS)).
OperationNotPermitted
The operation was not permitted (AVERROR(EPERM)).
NoStreamFound
Returned when the input contains no streams, or no stream of the requested kind.
UnknownError(i32)
Any other failure; the payload is the raw FFmpeg error code
(rendered with av_err2str in the message).
Trait Implementations§
Source§impl Debug for FindStreamError
impl Debug for FindStreamError
Source§impl Display for FindStreamError
impl Display for FindStreamError
Source§impl Error for FindStreamError
impl Error for FindStreamError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()