internal static unsafe AVCodec *AvCodecFindDecoder(AvCodecId codecId) { var decoder = ffmpeg.avcodec_find_decoder(codecId); if (decoder == null) { throw new FfmpegException( String.Format("Failed to find a decoder for CodecId {0}.", codecId), "avcodec_find_decoder"); } return(decoder); }
public static AvCodec FindDecoder(AvCodecId id) { AVCodec *codec = ffmpeg.avcodec_find_decoder((AVCodecID)id); return(codec == null ? null : new AvCodec(codec)); }